Ubuntu – How to change the date and time on Ubuntu

datetime

When I go to change the date and time it doesn't work. I try to unlock but it just won't unlock. If there is any way to make it work please help.

I know it isn't very descriptive but I really would appreciate some answers.

Best Answer

From man date

-s, --set=STRING
          set time described by STRING

To change date, use the command in terminal,

sudo date --set=STRING

For example, to change date to 25 Sep 2013 15:00, the command would be,

sudo date --set "25 Sep 2013 15:00:00"