Assigning Creation Date to Modified Date

Started by Archive, May 12, 2010, 08:54:22 AM

Previous topic - Next topic

Archive

[Originally posted by beach9000 on 2008-07-15 17:23:28-07]

I want to assign the photo's creation date to its modified date but when try this line

exiftool -ModifyDate=$CreateDate DSC_2808.jpg
I get this error

Invalid date/time (use YYYY:MM:DD HH:MM:SS[.SS][+/-HH:MM|Z]) in IFD0:ModifyDate (PrintConvInv)
So could somebody pass on the correct syntax?

Thanks!

Archive

[Originally posted by justin on 2008-07-15 20:42:42-07]

Try:

Code:
exiftool -ModifyDate<CreateDate DSC_2808.jpg
Note the lack of a minus sign on the second tag. I overlooked that and pulled my hair out for ages!

Archive

[Originally posted by exiftool on 2008-07-16 10:37:30-07]

Thanks Justin.  That will work, but you need quotes around the argument
containing a less-than symbol. (ie. "-ModifyDate<CreateDate"). - Phil