Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Convert Date to Calendar java

Date date = new Date();
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.add(Calendar.YEAR, 1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Convert #Date #Calendar #java
ADD COMMENT
Topic
Name
3+9 =