Answers for "COnvert java.util.date to Calendar object in java"

2

convert date to calendar java

public static Calendar toCalendar(Date date){ 
  Calendar cal = Calendar.getInstance();
  cal.setTime(date);
  return cal;
}
Posted by: Guest on April-15-2020

Code answers related to "COnvert java.util.date to Calendar object in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language