I have a bunch of photos in folders and would like to prepend the filename with the date of the photo. Many of the photos have a "datetaken" in their properties, so I would like to rename those to
YYYY-MM-DD - originalfilename
However, when I use the rename command
{datetaken|yyyy-MM-dd} - *
it turns the P7280001.jpg filename into:
2003-07-28 18;30;36 - P7280001.jpg
whereas I want to turn it into:
2003-07-28 - P7280001.jpg
How can I prevent the time to be included in the name?
To expand this quest a bit further, some files do not have a "datetaken" but do have a "date created" or "date modified" field (I see this in the 'properties' of the files). What I want is to take the earliest date of these three (or of whichever of these three occur in the file) and include prepend the filename with that, again in the YYYY-MM-DD format.
I don't know if this is possible, Is there any way to achieve this elegantly?