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=sharingI 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