Split date/time strings
问题 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. date = "12/8/2012" & time = "11:25 am" To put this into the android calendar, I need to do the following: Calendar beginTime = Calendar.getInstance(); beginTime.set(year, month, day, hour, min); startMillis = beginTime.getTimeInMillis(); intent.put(Events.DTSTART, startMillis); How can I split the date and time variables so that they are