System
date
Displays or sets the system date and time.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-10-08
Syntax
$date [OPTIONEN] [+FORMAT]
Examples
$date
$date +'%Y-%m-%d %H:%M:%S'
$date -s '2023-12-25 12:00:00'
Typical use cases
?
Standard usage
date --help
Note
Displays current date/time or formatted output.
Export