I have my current data as 2012-08-20T12:30:00+05:30
DateTime currentdata = "2012-08-20T12:30:00+05:30";
I am using
String myDate = new SimpleDateFormat("MM/dd/yyyy").format(currentdata);
I get Cannot format given Object as a Date
Any clues??
String myDate = new SimpleDateFormat("MM/dd/yyyy").format(currentdata.toDate());