How can we change the date/time in linux?
Ans : Changing date in linux is bit confusing. If you want to change date in GUI it’s very much easy and if you want to change it when it comes to CLI it’s bit hard to remember it.

Date is the command to check whats the present date

To change the date use below command

MM => Two digit month value

DD => Two digit day value

HH => Two digit hour value

MM => Two digit minuite value

YYYY => Four digit year value

ss => Two digit seconds value(very rare we will be using this)

Example1 : I want to change the date to Nov 24 1:36 PM 2010

#date 112413362010

Example2 : I want to change the date to Jan 9th 8:05.04 AM 2010

#date 010908052010.04

Now the date will be changed to your required date.