Check out example codes for "dates in java 8". It will help you in understanding the concepts better.

Code Example 1

LocalDateTime.parse("2015-02-20T06:30:00");

Code Example 2

LocalTime sixThirty = LocalTime.parse("06:30");

Code Example 3

LocalDate.of(2015, 02, 20);
 
LocalDate.parse("2015-02-20");

Code Example 4

LocalTime sixThirty = LocalTime.parse("06:30");

Learn ReactJs, React Native from akashmittal.com