chanchoth
2005-07-25 06:01:14 UTC
Hi batch guru,
I would like to create a simple batch file which can show the time in
this format hhmmss. My script is as follow:
showtime.bat
============
echo %time:~0,2%%time:~3,2%%time:~6,2%
The problem is when the time is 1-9, it shows only hmmss. All I want is
when the time is from 1-9, I would like it to have 0 infront of the
time so that I can have this format hhmmss.
Thanks for your kind assistance.
I would like to create a simple batch file which can show the time in
this format hhmmss. My script is as follow:
showtime.bat
============
echo %time:~0,2%%time:~3,2%%time:~6,2%
The problem is when the time is 1-9, it shows only hmmss. All I want is
when the time is from 1-9, I would like it to have 0 infront of the
time so that I can have this format hhmmss.
Thanks for your kind assistance.