Help converting Year to a simpler format

see e.g.

Why do you include the filename in the folder name?

Aren't there many files in the folder?
The format of the year that you show is actually the format for RELEASETIME. I would copy the data from YEAR to RELEASETIME and then cut the YEAR to just 4 digits as that is the format that the standard defines.