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

Code Example 1

LocalDate localDate = LocalDate.now();

Learn ReactJs, React Native from akashmittal.com