Hi,
i unable to get the last month date in AIX.
current date - one month
Based on the forums tried but did not find the relevent information.
Any help grealy appriciated.
Thanks
Suri.
Hi,
i unable to get the last month date in AIX.
current date - one month
Based on the forums tried but did not find the relevent information.
Any help grealy appriciated.
Thanks
Suri.
Is perl ok?
perl -MPOSIX -le '@x=localtime; if($x[4]!=0) {$x[4]--} else {$x[4]=11;$x[5]--};print strftime ("%Y-%m-%d", @x)'
$ perl -e '@T=localtime(time-2592000);printf("%02d/%02d/%02d",$T[5]+1900,$T[4]+1,$T[3])'
2011/12/28
Thanks balajesuri
i am not looking in the perl.
Any help other than perl.
thanks -suri
---------- Post updated at 03:21 AM ---------- Previous update was at 03:14 AM ----------
Thanks balajesuri
i am not looking in the perl.
Any help other than perl.
thanks -suri