Check out example codes for "date to localdate". It will help you in understanding the concepts better.

Code Example 1

dateToConvert.toInstant()
      .atZone(ZoneId.systemDefault())
      .toLocalDate();

Learn ReactJs, React Native from akashmittal.com