My Date format Example = "jan 14, 2015" Now I convert this string date to Timestamp But this Code Throws ParseException.
format = new SimpleDateFormat("MMM dd, yyyy HH:mm:ss", Locale.ENGLISH);
try {
format.setTimeZone(TimeZone.getTimeZone("Asia/Bangladesh"));
Date date = format.parse(str_date);
Timestamp timeStampDate = new java.sql.Timestamp(date.getTime());
return timeStampDate;
} catch (ParseException e) {
e.getCause().printStackTrace();
return null;
}
So How can I Solve this Exception??? Thanks in Advance.