public static LocalDate of (int year, int month, int dayOfMonth)

Obtains an instance of LocalDate from a year, month and day.

This returns a LocalDate with the specified year, month and day-of-month. The day must be valid for the year and month, otherwise an exception will be thrown.

Parameters:
year    the year to represent, from MIN_YEAR to MAX_YEAR
month    the month-of-year to represent, from 1 (January) to 12 (December)
dayOfMonth    the day-of-month to represent, from 1 to 31

Returns:  the local date, not null

Exceptions:
DateTimeException    if the value of any field is out of range, or if the day-of-month is invalid for the month-year