Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get year

import java.time.ZoneId;
import java.util.Date;

new Date().toInstant().atZone(ZoneId.systemDefault()).toLocalDate().getYear();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #year
ADD COMMENT
Topic
Name
1+2 =