Changing the System Date time from batch file

The following are the commands to change the system date time using the command prompt or from the batch files.

REM – the following line is used to set the date given after date as the system date
date 04/23/2014
REM – the following command prints the system date, just to make sure that the change is in effect
echo %date%