Android Calendar Parse pars2Calender(String s)

Here you can find the source of pars2Calender(String s)

Description

pars Calender

Declaration

public static Calendar pars2Calender(String s) 

Method Source Code

//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;
    }
}

Related

  1. stringToCalendar(String date)
  2. convertStringToCalendar(String stringDate)
  3. getCalendarFromString(String time)
  4. getSelectCalendar(String dateStr, String pattern)