Year formatting


#1

I am not sure why but I have some dates appearing in my "Year" tags/frames. Meaning, for some tracks, I see "1987-01-01" instead of just "1987".

2 Questions arise...

  1. Why would the YEAR frame allow a full 10 digit date to be stored?
  2. What is the best approach for formatting the %year% frame to simply show ONLY the YEAR (yyyy)?

Thanks in advance for any and all responses!


#2

It is sometimes very difficult to answer a "why" question ... so I try the second one:
Create an action of the type "Format tag field" for the field YEAR
Enter as format string:
$left(%year%,4)
This should reduce the length of the entry in YEAR to just 4 ... and if it was already equal to 4 then it won't do any harm. :wink:


#3

Regarding this question. I'll answer why i use this personally. Theres DJ software called 'Traktor Pro' which utilsies the year field in the format YYYY-MM-DD OR YYYY-DD-MM. So it shows up in the format YYYY/MM/DD OR YYYY/DD/MM. Also iTunes recognises that as just YYYY. So there's one standpoint for why to use that format.

You might also what to back-up the YEAR tag to a BACKUPYEAR tag before you go deleting valuable data.


#4

I think the proper place for such a longish date is in RELEASEDATE.