How do I display a date in a specific format in Unix?
Answer
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.
Answer
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 |