Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert date to calendar java

public static Calendar toCalendar(Date date){ 
  Calendar cal = Calendar.getInstance();
  cal.setTime(date);
  return cal;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #date #calendar #java
ADD COMMENT
Topic
Name
1+2 =