when i convert my string object in mm/dd/yyyy
format to Date
it gives me
java.text.ParseException: Unparseable date: \"09/17/2014
There are several potential problems here:
java.util.Date
reference) to a java.sql.Date
- that would failYou want something like:
DateFormat df = new SimpleDateFormat("MM/dd/yyyy", Locale.US);
df.setTimeZone(...); // Whatever time zone you want to use
Date journeyDate = new java.sql.Date(df.parse(text).getTime());