date

Display today's date
date +%Y-%m-%d
Yesterday
date -d yesterday +%Y-%m-%d