On Unix-like operating systems, the date command is used to print out, or change the value of, the system's time and date information.
How to use date
# syntaxdate<options>##### set date an time using -set optiondate# output : Sun May 20 20:09:31 PDT 2013date-s"Sun May 20 21:00:00 PDT 2013"# output : Sun May 20 21:00:00 PDT 2013date# output : Sun May 20 21:00:05 PDT 2013##### output from a stringdate--date="12/2/2014"# output : Tue Dec 2 00:00:00 PST 2014date--date="2 Feb 2014"# output : Sun Feb 2 00:00:00 PST 2014date--date="Feb 2 2014"# output : Sun Feb 2 00:00:00 PST 2014##### output from a string, with date and timedate--date="Feb 2 2014 13:12:10"# output : Sun Feb 2 13:12:10 PST 2014##### read date patterns from a file using -file optioncatdatefile# output underneathSept91986Aug231987date--file=datefile# output underneathTueSep900:00:00PDT1986SunAug2300:00:00PDT1987##### Display universal time using -u optiondate# output : Mon May 20 22:07:53 PDT 2013date-u# output : Tue May 21 05:07:55 UTC 2013