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