Linux Date Command Option
Date command options.
Date command to get the current date.
$ date=$(date +%Y-%m-%d)
$ echo $date
Date command to get yesterday's date.
$ date=$(date --date=yesterday +%Y-%m-%d)
$ echo $date
Date command to get tomorrow's date.
$ date=$(date --date=tomorrow +%Y-%m-%d)
$ echo $date ...
0
Posted by Shahid