A month ago Mar 20, 2019 • Ulysses How to get last month’s value. Useful with Bash scripts. <pre lang="bash"> LASTMONTH = $(date +%Y%m -d '1 month ago') echo $LASTMONTH # Output is ... 201902