ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: rahulk on January 09, 2014, 09:34:32 PM

Title: Renaming .MOV files how to get yyyy-mm-dd hh.mm.ss
Post by: rahulk on January 09, 2014, 09:34:32 PM
First of all , kudos to Phil !!! Loved this application. Can't tell how valuable this tool was for me.  :)
I saw this post earlier
https://exiftool.org/forum/index.php?topic=4178.0

Phil suggested this(below) - This works perfectly fine...However, I wanted the format  YYYY-MM-DD HH.MM.SS
exiftool -d "%%y-%%m-%%d--%%H%%M%%S" "-filename<createdate" -k %*
Please let me know how this can be accomplished. Thanks in Advance !!!
Title: Re: Renaming .MOV files how to get yyyy-mm-dd hh.mm.ss
Post by: rahulk on January 09, 2014, 09:38:02 PM
This is an example of current format
13-08-10--190946.MOV

I would like this to look like 2013-08-10 19:09:46.MOV

I am not so familiar with the technical aspects, only thing I can do is just follow and update my .bat file  :)
Title: Re: Renaming .MOV files how to get yyyy-mm-dd hh.mm.ss
Post by: Phil Harvey on January 10, 2014, 07:22:51 AM
Here is a list of date/time formatting codes (https://exiftool.org/filename.html#codes).  It looks like you want this:

-d "%%Y-%%m-%%d %%H.%%M.%%S"

However you should add ".%%%%e" to this if you want to keep the file extension.

(All the "%" characters are doubled because you are using this in a .BAT file.)

- Phil
Title: Re: Renaming .MOV files how to get yyyy-mm-dd hh.mm.ss
Post by: rahulk on January 11, 2014, 03:14:36 PM
Thanks much Phil. This worked like wonder. Awesome tool. I've searched for hours on internet how to do this kind a thing.
Now I can organize tons of videos that I have  :)
Appreciate your great work !