I am trying to format a date into required format. but i receive wrong date out put. here is what i am doing.
I receive the dates as following:
3/24/2012
SimpleDateFormat("mm/dd/yyyy hh:mm:ss a");
mm means minute in the hour. you should use MM
try with
SimpleDateFormat("MM/dd/yyyy hh:mm:ss a");