Here you can find the source of pars2Calender(String s)
public static Calendar pars2Calender(String s)
//package com.java2s; import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Calendar pars2Calender(String s) { Timestamp ts = Timestamp.valueOf(s); return Timestamp2Calendar(ts); }// ww w . ja va 2 s . co m public static Calendar Timestamp2Calendar(Timestamp ts) { Calendar c = Calendar.getInstance(); c.setTime(ts); return c; } }