posted 16 years ago
Well, there is no direct way of parsing Calendar objects. Instead, you parse Date objects.
When you called calendar.getTime(), that returned a Date object. I basically did the same except without using a Calendar object, which is unnecessary for what you want.
If you do want a Calendar object, create one with Calendar.getInstance(), then use setTime() to set the Date object you got from parsing.