Iam trying to convert date and time to milliseconds which iam using in a script on Sun Solaris.
I have searched the posts on the forum but i could not get any solution.
For my above query,iam running my script in the below way:
date Mon Dec 28 10:31:33 IST 2009
Date_val=`date "+%m%d%y%H%M%S"`
echo $Date_val
And i get the output as 122809164608
But when i convert 122809164608 back to day month year format it gives me the output for 1973 ie as below
Thu Nov 22 15:08:25 IST 1973
But I want for the date i provide.
Can someone tell where am I goin wrong?