The command: for /f %a in ('time/t') do echo %a
The above command outputs the current local time. What command do I use to get an output in 24-HR time?
For example: If I run this command at 6pm, it will output '6:00pm'. I want to see '18:00' without making any system changes.
Is this possible via a batch script?