In a unix shell, how to get yesterday’s date into a variable?

dt=$(date --date yesterday "+%a %d/%m/%Y")
echo $dt

Leave a Comment