My code to get the calendar date frone the string "2018-04-14'T'15:38:14",
it is currently causing a exception WHEN i call setTime
. The code
Calendar cal = Calendar.getInstance();
// format of date yyyy-MM-dd'T'HH:mm:ss
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd 'T'
cal.setTime(sdf.parse("2018-04-14'T'15:38:14"));// all done1
The above line causes a exception saying "Unparsable date"