How Do I Print Only the Date in Linux?
Contents How Do I Print Only the Date in Unix? Below Is a List of Common Date Format Options with Examples Output. It Works with the Linux Date Command Line...
Contents
How do I print only the date in Unix?
Below is a list of common date format options with examples output. It works with the Linux date command line and the mac/Unix date command line.
…
Bash date format options.
| Date Format Option | Meaning | Example Output |
|---|---|---|
| date +%m-%d-%Y | MM-DD-YYYY date format | 05-09-2020 |
| date +%D | MM/DD/YY date format | 05/09/20 |
Must Read
How do I show a specific date in Linux?
date command is used to display the system date and time. date command is also used to set date and time of the system. By default the date command displays the date in the time zone on which unix/linux operating system is configured. You must be the super-user (root) to change the date and time.