Insert Date into File Name

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Zebryk
Posts: 8
Joined: 21 Nov 2013 21:43

Insert Date into File Name

Post by Zebryk »

Hello,

When creating or renaming files, I very frequently manually enter the current date in ISO 8601 format. (2019-06-17)

It would seem there might be already an easy way of doing this via a Function Key or Command.

Has anyone an answer?

Thanks,

Jay Zebryk

jupe
Posts: 2790
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Insert Date into File Name

Post by jupe »

Well this is the variable you'd want: <date yyyy-mm-dd> and depending on what you are doing with it scripting is probs the answer, for example maybe using rename etc commands via PFA: https://www.xyplorer.com/tour.php?page=pom which by default has an example for adding the date to the filename, or you might just use it in some of your rename functions MRU lists where that variable works too. (File | Rename Special)

admin
Site Admin
Posts: 60538
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Insert Date into File Name

Post by admin »

There is also a built-in function to make a copy of the selected file with appended current date:
File | Duplicate | Copy Here with Current Date (Ctrl+Shift+Alt+D)

You can customize the format of the date here:
Configuration | Colors and Styles | Templates | Date affix | Date affix (e.g. *-<date yyyymmdd>)

Post Reply