Enter the following command, substituting the current date and time for the number string: date [-u] [[[CC]yy]mmddhhmm[.ss]] -u sets the date and time to Greenwich Mean Time instead of the local time.
CC is the first two digits of the current year.
yy is the second two digits of the current year.
mm is the current month. If the month is omitted, the default is the current month.
dd is the current day. If the day is omitted, the default is the current day.
hh is the current hour, using a 24-hour clock.
mm is the current minute.
ss is the current second. If the seconds are omitted, the default is 0.
Example
The following command sets the date and time to 22 May 2002 at 9:25 a.m. date 200205220925
Note: If the first two digits of the year are omitted, they default to 20; if all four digits are omitted, they default to the current year. Time changes for daylight saving and standard time, and for leap seconds and years, are handled automatically.