copy FileCreateDate in CreateDate

Started by pumata, March 23, 2019, 08:06:22 AM

Previous topic - Next topic

pumata

Hi everyone,
I'm a newbies and try to get FileCreateDate into CreateDate for all my .MOV files
I use  :
exiftool -createdate=filemodifydate file1.mov

but I have the follow error : Warning: Invalid date/time (use YYYY:mm:dd HH:MM:SS[.ss][+/-HH:MM|Z]) in ExifIFD:CreateDate (PrintConvInv)

$ exiftool -createdate -filemodifydate file.mov 
Create Date                     : 2019:03:18 07:52:38
File Modification Date/Time     : 2002:11:17 20:37:28+01:00

How can I get the right date format to apply?
Thank you for help.


StarGeek

See Common Mistake #5c.

The Equal Sign (=) is used to set a tag to a static value.  The Less/Greater Than sign (</>) is used to copy one tag to the other.

In this case, you're trying to set CreateDate to the string "filemodifydate", not to the value contained in the FileModifyDate tag.

Change the equal sign to a less than sign, and then you'll also have to put quotes around the whole thing to prevent file redirection.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).