by TheGhost78 » Wed Sep 03, 2025 10:49 am
If you want to remove an existing date or date time and update it to the latest modified date or date time, in the format Filename, 2025-09-03 or Filename, 2025-09-03 10.38.10:
RegEx (1)
Match: (.+)(, \d{4}-\d{2}-\d{2})( \d{2}\.\d{2}\.\d{2})?$
Replace: \1
Auto Date (8)
Mode: Suffix
Type: Modified (Current)
Format: Custom
Sep.: , (comma space)
Custom: %Y-%m-%d or %Y-%m-%d %H.%M.%S
It would work for files that do not currently have a date or date time as well, as the RegEx (1) part simply won't do anything to those filenames but the Auto Date (8) part will still fire.
If you want to use different separators, just change them in both the Match portion of RegEx and the Sep. and Custom portions of Auto Date.