public void setTime (Calendar startCal, Calendar endCal, String dateTime)
    {
        String[] dateTimes = dateTime.split("\\s+");
        try
        {
            int year = Integer.parseInt(dateTimes[3]);
            int day = Integer.parseInt(dateTimes[2].replace(",", ""));
            SimpleDateFormat monthFormat = new SimpleDateFormat("MMM");
            int month = monthFormat.parse(dateTimes[1]).getMonth();
            SimpleDateFormat sdf;
            if (dateTimes.length > 4)
            {
                if (dateTimes[4].contains(":")) sdf =
                    new SimpleDateFormat("hh:mmaa");
                else sdf = new SimpleDateFormat("hhaa");
                int startHour = sdf.parse(dateTimes[4]).getHours();
                int startMinute = sdf.parse(dateTimes[4]).getMinutes();

                if (dateTimes[6].contains(":")) sdf =
                    new SimpleDateFormat("hh:mmaa");
                else sdf = new SimpleDateFormat("hhaa");
                int endHour = sdf.parse(dateTimes[6]).getHours();
                int endMinute = sdf.parse(dateTimes[6]).getMinutes();
                startCal.set(year, month, day, startHour, startMinute);
                endCal.set(year, month, day, endHour, endMinute);
            }
            else
            {
                startCal.set(year, month, day);
                endCal.set(year, month, day);
            }

            startCal.setTimeZone(TimeZone.getTimeZone("UTC"));
            endCal.setTimeZone(TimeZone.getTimeZone("UTC"));

        }
        catch (ParseException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }