#1 2021-01-20 17:06

jjantell
Member
Registered: 2014-09-02
Posts: 10

Reformat AM/PM time to 24 hours

I have files with times in this format

04.22.26 PM

How can I reformat this to 24 hour format - i.e. 16.22.26

Offline

#2 2021-01-21 00:33

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Reformat AM/PM time to 24 hours

You can do this with the Reformat Date rule.

Rule configuration:

* Source format: "hh.nn.ss am/pm"
* Target format: "hh.nn.ss"

Note: The handling of the 12-hour clock notation in the search format was implemented in ReNamer 7.2.0.9 Beta. At this moment, you will need to use the latest development version. In earlier versions this task can be done only with the Pascal Script rule, which would be a lot more complicated.

Offline

Board footer

Powered by FluxBB