Java Date Convert convert(Date d)

Here you can find the source of convert(Date d)

Description

convert

License

Open Source License

Declaration

public static Calendar convert(Date d) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Calendar convert(Date d) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(d);/*from  www.  j  a v  a2s  .c o  m*/
        return cal;
    }
}

Related

  1. convertDate(Object obj)
  2. convertDateTime(String date, String time)
  3. convertDateTimeToSysTime(String sDateTime)
  4. ConvertDateToAge(String date)