On this page
How To Change The Date And Time From The Console
This short tutorial explains how you can modify your system date and time from the console.
To change the date on Linux from the console type:
date -d mm/dd/yy
or
date --date=mm/dd/yy
where mm=month, dd=day and yy=year
To change the time on Linux from the console type:
date -s hh:mm:ss
or
date --set=hh:mm:ss
where hh=hour, mm=minute, ss=second