I trying to get yesterdays date using the command date.
I have the following command:
Code: Select all
date +"%A, %B %-d, %Y"
Code: Select all
date +"%A, %B %-d, %Y"
Code: Select all
date +"%A, %B %-d, %Y" --date="-1 day"
Code: Select all
date +"%A, %B %-d, %Y" -d yesterday
Code: Select all
date +"%A, %B %-d, %Y" -d tomorrow
date +"%A, %B %-d, %Y"
date +"%A, %B %-d, %Y" -d "-1 month"
date +"%A, %B %-d, %Y" -d '3 weeks ago'