I have a ReST service which downloads information about events in a persons calendar...
When it returns the date and time, it returns them as a string
e.g. d
This is just a Idea, you can do some thing like this without splitting
DateFormat formatter = new SimpleDateFormat("MM/dd/yyyy HH:mm a"); Date date = formatter.parse("12/8/2012 11:25 am"); Calendar cal=Calendar.getInstance(); cal.setTime(date);