update filePropertyDate("MediaInfo:Recorded_Date") please

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

update filePropertyDate("MediaInfo:Recorded_Date") please

Postby sbennet1 » Sat Nov 22, 2025 9:57 pm

change the filePropertyDate("MediaInfo:Recorded_Date") so that is returns a date.

Currently the date string is in the format of 2017-02-28T16:10:21-0800 which is not recognized as a date in filePropertyDate("MediaInfo:Recorded_Date")
Please allow the filePropertyDate("MediaInfo:Recorded_Date") to recognize it as a date.
sbennet1
 
Posts: 17
Joined: Mon Oct 27, 2025 1:55 pm

Re: update filePropertyDate("MediaInfo:Recorded_Date") please

Postby Admin » Sun Nov 23, 2025 12:51 am

Hi, would you be able to send a small test file for this to support via email? thanks
Admin
Site Admin
 
Posts: 3120
Joined: Tue Mar 08, 2005 8:39 pm

Re: update filePropertyDate("MediaInfo:Recorded_Date") please

Postby sbennet1 » Fri Dec 05, 2025 8:20 pm

Sorry for the late response I was on vacation.

Link to test file. It is on Google drive. Just download it.

https://drive.google.com/file/d/1-_ZxGyUhLFpeAiJ_X6vT3BnjO7qLqSyB/view?usp=sharing

I tested the file using the following code:

Code: Select all
// Collect date objects
  var d_rec = filePropertyDate("MediaInfo:Recorded_Date");
  var d_tag = filePropertyDate("MediaInfo:Tagged_Date");

  // Collect raw strings
  var s_rec = fileProperty("MediaInfo:Recorded_Date");
  var s_tag = fileProperty("MediaInfo:Tagged_Date");

  // Alert raw fields for diagnostics
  alert(
    "Recorded_Date (date): " + (d_rec || "null") + "\n" +
    "Recorded_Date (str): " + (s_rec || "null") + "\n\n\n" +
    "Tagged_Date (date): " + (d_tag || "null") + "\n" +
    "Tagged_Date (str): " + (s_tag || "null") + "\n"
  );



If you run the code on the test file you will see that Recoded date as a date returns null and as a string it returns a date that can be parsed. I also displayed the Tagged Date which shows a date both a date and a string
sbennet1
 
Posts: 17
Joined: Mon Oct 27, 2025 1:55 pm

Re: update filePropertyDate("MediaInfo:Recorded_Date") please

Postby therube » Mon Dec 08, 2025 8:32 pm

(Maybe ? something here, JavaScript ISO Date to human readable.)
therube
 
Posts: 1450
Joined: Mon Jan 18, 2016 6:23 pm

Re: update filePropertyDate("MediaInfo:Recorded_Date") please

Postby sbennet1 » Wed Dec 10, 2025 6:47 pm

therube wrote:(Maybe ? something here, JavaScript ISO Date to human readable.)


That is my point. The date is not exactly in ISO format. I am asking the the filePropertyDate do the conversion and return a proper date instead of null. This file came from an apple download of a movie file. I was hoping the the filePropertyDate function could do the conversion instead of doing a custom program to do the conversion.
sbennet1
 
Posts: 17
Joined: Mon Oct 27, 2025 1:55 pm


Return to Suggestions