Skip to content

Instantly share code, notes, and snippets.

@vishless
Last active November 27, 2017 09:02
Show Gist options
  • Save vishless/f6581b81eba7e5cef3ba98237b673648 to your computer and use it in GitHub Desktop.
Save vishless/f6581b81eba7e5cef3ba98237b673648 to your computer and use it in GitHub Desktop.
Command to generate a formatted timestamp in cmd
Timestamp
echo %DATE:~-4%%DATE:~4,2%%DATE:~7,2%%time:~-11,2%%time:~-8,2%%time:~-5,2%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment