Hi Newbie,
Personally, I like parsing "ECHO.|TIME" because it gives seconds and milliseconds if you want them. It will also return 24hour time even if your time settings state 12hr time:
:: ---EXAMPLE.BAT----
@ECHO OFF
FOR /F "TOKENS=5-8 DELIMS=:. " %%F IN ('ECHO.^|TIME')...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.