Search found 1 match

by STEVEC5088
24 Feb 2009 02:47
Forum: DOS Batch Forum
Topic: How to format time?
Replies: 1
Views: 9166

How to format time?

I am trying to generate time in 12-hour time, format HH:MI:SS PM, but don't know if there is a way to do it in 1 step. (It will be used to annotate a web cam picture.) I have come up with the two steps below: @echo %%time%% = %time% @FOR /f "tokens=1-2" %%i in ('time /t') do @(...