Q:

I am getting date as String from jsp page how to convert it in to java.util.Date

I am getting date as "04/26/2013" and time as "05:30 AM "and time zone as"-12.0" from the jsp page and getting it in a servlet how can I convert this String values in to java.util.Date format . I have tried to append the Strings and got (04/26/2013 05:30 AM -12.0) but am not able to use Dateformat or timestamp 
Can anyone suggest a way to solve this ?

A:

I think it comes from the time zone format.
DateFormat df = new SimpleDateFormat("dd/MM/yyy hh:mm a Z");
String t = "04/26/2013 05:30 AM -1200";
String tt = "04/26/2013 05:30 AM GMT -1200";
Date d= df.parse(t);
Date d= df.parse(tt);

works for me.
You can read more about time zone format here

