#1 : 21/04-20 10:29 EricK
Posts: 1
|
Hi there.
I have files with names always with YEAR, MONTH, HOUR, MIN, SEC. But for YEAR, it only has two digits, erros is shown when changing timestamp following such filename pattern. Filename is "200420182442.mp4" Actual date is 2020.04.20 18.24.42 Timestamp I used: Pattern: <Year><Month><Day><Hour><Min><Sec> But system showed: Invalid timestamp: '2004/20/18 24:4:2.0' How can I tell the system that the first two digits "20" represents "2020"? Any suggestion, please? Thank you and appreciated for your help. Erick |
#2 : 21/04-20 13:29 David Lee
Posts: 1125
|
Normally <Year:00> would return a two-digit year but this functionality is not enabled in the Timestamp method.
I think that the only solution will be to add "20" to the start of the filename before the Timestamp method and then remove it afterwards". The Timestamp method works on the ORIGINAL filename so you will need to run two passes: First batch: Add:20, At index: 1 Run the batch - reloading All items Second batch: 1) Timestamp method using existing Filename pattern 2) Remove count: 2, Starting at 1 |