Chris Bradshaw 5/16/2012

Formatting the Windows date in a filename.

Read Original

This technical article explains how to format the Windows command line's %DATE% environment variable to produce an ISO 8601 compliant date string (YYYY-MM-DD) suitable for use in filenames and backup folder paths. It provides a specific substring extraction command and an example using robocopy for automated, dated backups.

Formatting the Windows date in a filename.

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes