Bash -Datum gestern Format
echo $(date --date=' 1 days ago' '+%Y-%d-%m')
Tiago F2
echo $(date --date=' 1 days ago' '+%Y-%d-%m')
#You can get the yesterday date by this:
date -d "yesterday 13:00 " '+%Y-%m-%d'
#and day before yesterday by this:-
date -d "yesterday-1 13:00 " '+%Y-%m-%d'