how to set date to current date using dos batch file command.
When you type "date" on the dos command it will show you the date specified in your bios, and ask you to set the current date (you can set this if the date in your bios is not the current). The system has no ability to know if it's date is correct.
If you have a server with correct date, you can use "net time" so the the client can synchronize with the server.
NET TIME /SET
or
NET TIME \\SERVERNAME /SET /YES