SyntaxFix
Write A Post
Hire A Developer
Questions
There is another easy way of doing it:
set HH=%time:~0,2% if %HH% LEQ 9 ( set HH=%time:~1,1% )