I am navigating through the Java 8 Date and Time new APIs, and I could not go further, and I cannot find any good resource on the net. I hope you are fueling this question.
My simple source code
final LocalDate date = LocalDate.now();
date.get(TemporalField field)
And I get the source code, and I see.
public int get(TemporalField field)
Gets the value of the specified field from this date as an int.
My question is how can I get TemporalField or is this the easiest way to get this code to work.
final int value = date.get(????);
It works thanks to JB Nizet
date.get(java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH);
API
http:
source
share