man > date(1)

📖 NAME

date - print or set the system date and time

🚀 Quick Reference

Use CaseCommandDescription
📅 Display current date/timedateShow current system date and time
🎨 Custom formatdate +"%Y-%m-%d"Display date in YYYY-MM-DD format
🕐 Convert epoch to datedate --date='@2147483647'Convert seconds since 1970-01-01 to date
🌍 Different timezoneTZ='America/Los_Angeles' dateShow time in a specific timezone
🔧 Set system datedate -s "2025-01-01 12:00:00"Set the system date/time (requires root)

📋 SYNOPSIS

date [OPTION]... [+FORMAT]

date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

📝 DESCRIPTION

Display the current time in the given FORMAT, or set the system date.

Mandatory arguments to long options are mandatory for short options too.

🔧 Options

📅 FORMAT

FORMAT controls the output. Interpreted sequences are:

By default, date pads numeric fields with zeroes. The following optional flags may follow '%':

After any flags comes an optional field width, as a decimal number; then an optional modifier, which is either E to use the locale's alternate representations if available, or O to use the locale's alternate numeric symbols if available.

📚 EXAMPLES

Convert seconds since the epoch (1970-01-01 UTC) to a date

$ date --date='@2147483647'

Show the time on the west coast of the US (use tzselect(1) to find TZ)

$ TZ='America/Los_Angeles' date

Show the local time for 9AM next Friday on the west coast of the US

$ date --date='TZ="America/Los_Angeles" 09:00 next Fri'

📅 DATE STRING

The --date=STRING is a mostly free format human readable date string such as "Sun, 29 Feb 2004 16:21:42 -0800" or "2004-02-29 16:21:42" or even "next Thursday". A date string may contain items indicating calendar date, time of day, time zone, day of week, relative time, relative date, and numbers. An empty string indicates the beginning of the day. The date string format is more complex than is easily documented here but is fully described in the info documentation.

👤 AUTHOR

Written by David MacKenzie.

🐛 REPORTING BUGS

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>

ÂŠī¸ COPYRIGHT

Copyright Š 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

🔗 SEE ALSO

Full documentation <https://www.gnu.org/software/coreutils/date>
or available locally via: info '(coreutils) date invocation'

GNU coreutils 8.32 January 2026 DATE(1)

date(1)
📖 NAME 🚀 Quick Reference 📋 SYNOPSIS 📝 DESCRIPTION
🔧 Options 📅 FORMAT
📚 EXAMPLES 📅 DATE STRING 👤 AUTHOR 🐛 REPORTING BUGS ÂŠī¸ COPYRIGHT 🔗 SEE ALSO

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-27 09:17 @216.73.217.112
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^