Hello all,
I'm wondering if anybody can please assist me with an expression to rename directories in which I keep my photos. Up until this point I had always used as an example the following directory format:
D:\Photos\Stonehenge 15-Jul-2020
What I'd like to be able to do is switch things around using the ISO 8601 date standard and put the date first so I end up with this:
D:\Photos\2020-07-15 Stonehenge
I've made some progress with the following expression in Rename, Move & Copy Files under the Directory expression box...
FormatDate([Date,0],yyyy-MM-dd) FileFolder()
This has resulted in renaming the folder as follows...
D:\Photos\2020-07-15 Stonehenge 15-Jul-2020
The crux of the question is does anybody know how to remove the now superfluous date from the end of the directory name? Since the unwanted portion of the directory name is always the last 12 characters (including the space) I was wondering if there was a way to get the expression to remove those last 12 characters automatically. That's as far as my thinking takes me.
Thanks to anyone that is able to help.