Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help With DATE

32 views
Skip to first unread message

Saucer Man

unread,
May 3, 2017, 6:07:08 PM5/3/17
to
My system shows DATE as ...

Mon 05/02/2017


I need to rename a folder to the current date but I would like it to be
in this format...

2017.05.02

How can I do this in a bat file?

Zaidy036

unread,
May 3, 2017, 8:32:17 PM5/3/17
to
Set xxx=%date:~10,4%.%date:~4,2%.%date:~7,2%

petu...@googlemail.com

unread,
May 5, 2017, 11:48:15 AM5/5/17
to
Ren "PathTo\FolderName" "%DATE:~-4%.%DATE:~-10,2%.%DATE:~-7,2%"

Saucer Man

unread,
May 9, 2017, 8:59:54 PM5/9/17
to
On 5/3/2017 6:07 PM, Saucer Man wrote:

Thanks for the help!

0 new messages