The date command outputs current or specified date and time and can also set the current system time.
date +"Today is day %j of the year %Y and it’s a %A"
Output: Today is day 078 of the year 2025 and it’s a Wednesday
Examples:
date -d "Jan 14, 2026 4:33 PM"
date --date="17:51:02 22/12/2020"
date -d "next Tuesday +2 years -8 hours + 3 days"
export LC_TIME=fr_CA.utf8
The value corresponds assigned to LC_TIME refers to files found in /usr/share/i18/locale. The file name is usually of the form languageCode_countryCode where the codes are the two character ISO codes for List of ISO 639 language codes or List of ISO 3166 country codes6 [5]
It is also possible to change the date presentation format by setting the environment variables LANG or LC_ALL however these will also change other presentation formats such as LC_MESSAGE (command error messages) and LC_MONETARY which many not be desirable.[1]
export TZ=Africa/Nairobi
The directory /usr/share/zoneinfo contains a large group of timezone database files| files describing both current and historical definitions of local times to facilitate the correct reproduction and translation of time information from one time zone and era to another. The files keep track of the offset from Greenwich Mean Time as well as when seasonal adjustments have been scheduled to take place such as the transition to and from Daylight Saving Time (DST). [6]
David McKenzie is the author of the Linux version of date. The date command has been part of Unix since AT&T's original Version 1.[1][7]