cmd batch time variable code example Example 1: get date whit batch c:\>echo %date% Sun 05/17/2015 Example 2: get date windows batch date #Get date in Batch