to set or print the system time and date. date [OPTION]… [+FORMAT]. $date. Output: Tue Aug 27 09:54:25 DST 2019. Explanation : the date command prints the current date and time of the system in a fixed format string as above. The format string is Abbreviated_week_day abbreviated_month day_of_the_month time(hh:mm:ss) time_zone YYYY(year).