Skip to content.

TalkBMC

Sections
You are here: Home » Blog Archive » Anne Gentle » Exploring Information Design and Development » Try this instead

Comment

Above in this comment thread: MS-DOS tips for time and date stamps » -

Try this instead

Posted by Bill Screen at 2006-10-23 12:47
@echo off

set hh=%time:~0,2%
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~10,4%%date:~4,2%%date:~7,2%_%hh%%time:~3,2%
echo %yymmdd_hhmmss%

pause
 
 

Powered by Plone

This site conforms to the following standards: