date - print or set date and time - Video Man Pages @DistroTube
date - print or set date and time - Video Man Pages  @DistroTube
Uploaded April 2026 | Updated November 2026, 1 day ago
The 'date' command prints or sets the date and time.

- Print the current date/time, using the default locale's format:
date +%c

- Print the current date/time in UTC, using default format:
date -u

- Print the current date/time in UTC, using the ISO 8601 format:
date -u +%Y-%m-%dT%H:%M:%S%Z

- Print the date only using the ISO 8601 format:
date +%F
-or-
date +"%Y-%m-%d"

- Print the date in MM/DD/YY format:
date +%D
-or-
date +"%m/%d/%y"

- Print the time in HH:MM:SS format:
date +%T
-or-
date +"%H:%M:%S"

- Print the current date as a Unix timestamp (seconds since the Unix epoch):
date +%s

- Convert a Unix timestamp date (ex: 1773665635) to the default format:
date -d @1773665635

- Convert a given date to the Unix timestamp format:
date -d "2020-03-01 00:00" +%s -u

- Display the current date using the RFC-3339 format (YYYY-MM-DD hh:mm:ss TZ) and printing seconds (s):
date --rfc-3339 s
NOTE Instead of 's' for seconds, you could use 'n' for nanoseconds of 'd' for printing date only.

- Set the current date providing a full timestamp in quotes (requires sudo privileges):
date -s "2026-03-16 14:30:00"

- Set the current time while keeping the current date (requires sudo privleges).
date +%T -s "10:15:30"

REFERENCED:
β–Ί gitlab.com/dwt1/vidman - Video Man Pages

WANT TO SUPPORT THE CHANNEL?
πŸ’° Patreon: patreon.com/distrotube
πŸ’³ Paypal: paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
πŸ›οΈ Amazon: amzn.to/2RotFFi
πŸ‘• Teespring: teespring.com/stores/distrotube

DT ON THE WEB:
πŸ•ΈοΈ Website: http://distro.tube
πŸ“ GitLab: gitlab.com/dwt1
πŸ—¨οΈ Mastodon: fosstodon.org/@distrotube
πŸ‘« Reddit: reddit.com/r/DistroTube
πŸ“½οΈ Odysee: odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
🌐 Brave Browser - brave.com
πŸ“½οΈ Open Broadcaster Software: obsproject.com
🎬 Kdenlive: kdenlive.org
🎨 GIMP: gimp.org
πŸ’» VirtualBox: virtualbox.org
πŸ—’οΈ Doom Emacs: github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys!
date - print or set date and time - Video Man PagesDont Switch From Windows To Linux...Switch To Mac Instead?!hostname - print or set the hostname  - Video Man PagesKaOS Ditches KDE Plasma For NiriUsing Bash Scripting To Create An Autostart ProgramRefreshOS Combines Debian Stability With KDE BeautyA Quick Look At Ublue Aurora (An Immutable KDE Plasma Distro)Try These Lockscreens For Your Window ManagersLearn The Basics - Man Pages Versus Info PagesWindows Has These Apps...Linux Doesnt!Features Linux Has...But Windows Doesnt!awk - a programming language for working on files - Video Man Pages
DistroTube |

'date' - print or set date and time - Video Man Pages

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER