Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get current year

import java.util.Calendar;

int year = Calendar.getInstance().get(Calendar.YEAR);
 
PREVIOUS NEXT
Tagged: #java #current #year
ADD COMMENT
Topic
Name
5+2 =