876
Coding Snacks / Re: Update Timestamp of file based on time in filename
« Last post by 4wd on April 04, 2018, 08:00 PM »...
updating time, when the date format in the file is yyyymmdd
In case the date format is ddmmyyyy then it is okay.-dcwul62 (April 04, 2018, 02:23 AM)
I have an idea, how about you standardise your filenames instead of having other people try and conform to your seemingly chaotic system?
It started off with:
yyyymmdd_hhmmss
ddmmyyyy_hhmmss
Now it appears that yyyy-mm-dd_hhmmss is also to be included, no doubt there's also dd-mm-yyyy_hhmmss plus who knows what other combinations.
Choose a format and do a rename of all the non-conforming files before running the script that sets the timestamps and then the whole process becomes simpler for everyone.
Updated

Recent Posts


