Jan 24, 2012

Linux: Date calculation

Yesterday



winzter]$ date --date='1 day ago' +%Y%m%d
winzter]$ date --date='-1 day' +%Y%m%d
winzter]$ date -d "yesterday" +%Y%m%d

No comments: