## Change the date format in Windows 10 with a batch file
### How to do it
1. Open Notepad.
2. Type the following code:
```
@echo off
rem Change the date format to MM/DD/YYYY
date /t "MM/DD/YYYY"
rem Change the time format to HH:MM:SS
time /t "HH:MM:SS"
```
3. Save the file as `change_date_format.bat`.
4. Run the batch file by double-clicking on it.
The date and time format on your computer will be changed to the format specified in the batch file.
### Tips
* You can change the date and time format to any format that is supported by Windows.
* You can also use the `/s` switch to specify the system time zone.
* For more information, see the [Windows batch file documentation](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/date).
### Related hashtags
* #BatchFile
* #Windows10
* #dateformat
* #timeformat
* #changeformat
### How to do it
1. Open Notepad.
2. Type the following code:
```
@echo off
rem Change the date format to MM/DD/YYYY
date /t "MM/DD/YYYY"
rem Change the time format to HH:MM:SS
time /t "HH:MM:SS"
```
3. Save the file as `change_date_format.bat`.
4. Run the batch file by double-clicking on it.
The date and time format on your computer will be changed to the format specified in the batch file.
### Tips
* You can change the date and time format to any format that is supported by Windows.
* You can also use the `/s` switch to specify the system time zone.
* For more information, see the [Windows batch file documentation](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/date).
### Related hashtags
* #BatchFile
* #Windows10
* #dateformat
* #timeformat
* #changeformat