Update README.md

This commit is contained in:
Jonathan Cook
2019-10-13 23:40:45 +02:00
committed by GitHub
parent db85c8f275
commit d17e102e39
20392 changed files with 1639367 additions and 0 deletions
@@ -0,0 +1,18 @@
package com.baeldung.datetime;
import java.time.LocalDate;
public class LocalDateExtractYearMonthDayIntegerValues {
int getYear(LocalDate localDate) {
return localDate.getYear();
}
int getMonth(LocalDate localDate) {
return localDate.getMonthValue();
}
int getDay(LocalDate localDate) {
return localDate.getDayOfMonth();
}
}