Skip to content

Instantly share code, notes, and snippets.

@yatt
Created July 27, 2017 00:55
Show Gist options
  • Save yatt/687ecf080531afd6e6f0764ebb3c78cf to your computer and use it in GitHub Desktop.
Save yatt/687ecf080531afd6e6f0764ebb3c78cf to your computer and use it in GitHub Desktop.
yyyymmdd hh for win
set YYYYMMDD=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
set HH=%TIME:~0,2%
rem 11 -> 11
rem 9 -> 09
set HH=%HH: =0%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment