how to get current date and time in command prompt code example Example: date command window date /t #To get date date #To get date and edit it