Hi,
Below command is producing yesaterday's date in mmddyy format -
perl -e '@T=localtime\(time-86400\);printf\("%02d%02d%02d",$T[4]+1,$T[3],($T[5]+1900)%100)'
But i want the date in mmddyyyy format; plz help.
Thankx,
Rahul Bahulekar.
---------- Post updated at 05:13 AM ---------- Previous update was at 05:07 AM ----------
got the answer -
perl -e '@T=localtime(time-86400);printf("%02d%02d%02d",$T[4]+1,$T[3],($T[5]+1900))'
just remove %100
thankx!!!