ToString.exe, Version 1.02 Batch tool to format numbers and dates the .NET way Usage: ToString.exe template arguments or: some_command | ToString.exe template Where: template string specifying how the arguments will be formated arguments single or multiple numbers or dates to be formated some_command command supplying the argument(s) in its standard output (multiple lines of input will each be parsed separately) Example: ToString "{0,6:F2}\t0x{1:X8}\t{2:dd-MM-yyyy}" "0.125" 500 2022-02-24 Returns: 0,13 0x000001F4 24-02-2022 Example: ToString "{0:yyyyMMddTHHmmssfffzzz}" %Time% Returns: 20220225T214121172+01:00 Example: TIME /T | ToString "{0:yyyyMMddTHHmmssfffzzz}" Returns: 20220225T214121175+01:00 Example: ToString "{0}" %Time% Returns: 2022-02-25 21:41:21 Example: ToString "{0}" %Date% Returns: 2022-02-25 00:00:00 Example: DIR %UserProfile%\.. | FIND "