hi all,
i want the script for the following
my input is date mm-dd-yyyy
i.e 1-4-2012(it doesn't have zeros in the input ,in output it should append zeros and should print the output as defined below)
my output should be 2012-04-01(yyyy-dd-mm)
if my input is 11-14-2012
then my should be 2012-14-11
i want it for variable input.. i have to input in command line based on that it should print ..
means if i pass 1-4-2012 then the output should be 2012-04-01
if i pass 11-14-2012 then the output should be 2012-14-11