Author Topic: copy FileCreateDate in CreateDate  (Read 139 times)

pumata

  • Newbie
  • *
  • Posts: 1
copy FileCreateDate in CreateDate
« on: March 23, 2019, 08:06:22 AM »
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

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2516
Re: copy FileCreateDate in CreateDate
« Reply #1 on: March 23, 2019, 11:27:48 AM »
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.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.