Display the date:
Simply type the date command to display the current date:
Fri Mar 12 12:44:29 CST 2010
To set/change date:
To set the date, you need to simply use the date command followed by the year, month, day, hour, minute, and second … all numeric and no spaces.
To set the date with date command, you need to follow this format:
# date yymmddhhMMss