convert date to calendar java

51

convert date to calendar java -

public static Calendar toCalendar(Date date){ 
  Calendar cal = Calendar.getInstance();
  cal.setTime(date);
  return cal;
}

Comments

Submit
0 Comments