Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get week number from localdate java

LocalDate date = ...;
// Or use a specific locale, or configure your own rules
WeekFields weekFields = WeekFields.of(Locale.getDefault()); 
int weekNumber = date.get(weekFields.weekOfWeekBasedYear());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #week #number #localdate #java
ADD COMMENT
Topic
Name
1+1 =