Ref
http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html
Get yesterday date
1)
YESTERDAY=`TZ=aaa24 date +%Y%m%d`
echo $YESTERDAY
2)
in GNU date:
date --date=yesterday
Post a Comment
No comments:
Post a Comment