Monday, November 1, 2021

LocalDate

To set a LocalDate with today's date we can use the following:


LocalDate.of(2021, 10, 30)

The above allows us to set a date, any date. There's another way to set a date using LocalDate.


LocalDateTime ldt = LocalDateTime.now();

No comments:

Post a Comment

A Placebo?

 At times I wonder if my medication is just a placebo. That is a medication that usually has no effect on a disease. Am I dreaming it all up...