Thread

Posted on Tue Jul 15 20:23:28 2008 by beach9000
Assigning Creation Date to Modified Date

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!
Direct Responses: 8323 | Write a response
Posted on Tue Jul 15 23:42:42 2008 by justin in response to 8321
Re: Assigning Creation Date to Modified Date

Try:

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!

Direct Responses: 8327 | Write a response
Posted on Wed Jul 16 13:37:30 2008 by exiftool in response to 8323
Re: Assigning Creation Date to Modified Date
Thanks Justin. That will work, but you need quotes around the argument containing a less-than symbol. (ie. "-ModifyDate<CreateDate"). - Phil
Write a response