Copy Datestamp Filename to All Actual Datestamps

I am downloading pictures that end up using a datestamp for the filenames. Over time the different datestamps end up getting changed. I would like to be able to change them back in bulk.

For example, 2016-07-14 21.53.34.jpg date stamps get updated. I'd like to be able to copy the timestamp to created & modified also.

It seems like there is an easy way to do it, but it escapes me at the moment.

There's a script in this thread which will do that. You may need to modify the regex to suit your date/time format (I haven't checked if it's the same):

If your files are always named so nicely, this should work as well:

@sync:dopusrt /cmd SetAttr FILE="{filepath}" META "lastmodifieddate:{file|noext}" "createdate:{file|noext}"