how to get time in batch file code example Example: get date whit batch c:\>echo %date% Sun 05/17/2015