how to set date in ubuntu

Shell
sudo date –s YY-MM-DD HH:MM:SS
Source

Also in Shell: