Skip to content.

TalkBMC

Sections
You are here: Home » Blog Archive » Anne Gentle » Exploring Information Design and Development » Timestamp format 20080510_082233

Comment

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

Timestamp format 20080510_082233

Posted by alby at 2008-05-10 03:57
This my solution: ex. 20080510_082233

set timestamp=%time:~0,8%
if @%timestamp:~0,1% == @ set timestamp=0%timestamp:~1,7%
set timestamp=%date:.=%_%timestamp::=%

echo.Timestamp :: %timestamp%
 
 

Powered by Plone

This site conforms to the following standards: