I use the above to get the time into chunks.
and them in a file.
move myFile.txt myFile-%g1%_%g2%_%g3%-%t1%_%t2%_%t3%.txt
It works fine as long as there is a 2 digit hour such as 10 11 or 12
If it is 7AM how can I get the hour above to have a leading 0? such as 07 instead of just 7
T1 above is what holds the hour.