Get yesterday’s date in bash on Linux, DST-safe October 18, 2022 by Tarik I think this should work, irrespective of how often and when you run it … date -d "yesterday 13:00" '+%Y-%m-%d'