With clock you can set the current time and date on a Cisco device.
For example:
clock set 20:08:56 Sept 21 2010
The generic syntax of the command is:
clock set hh:mm:ss MONTH <0-31> YYYY
...where:
hhis the hour,mmare the minutes,ssare the seconds,MONTHis the month,<0-31>is the date, an integer between 0 and 31, andYYYYis the year.
Note that the month and date are also acceptable in the reverse order, for example:
clock set 20:08:56 21 Sept 2010