date for a previous or next day


To get the date for a previous or next day.

Run the below examples.

date -d 'this Friday' '+%d/%m/%y'
date -d 'next Friday' '+%d/%m/%y'
Advertisements