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

We Live In A Simulation

 You read that title right. We live in a simulation. Nothing is real. It's as real as you want it to be. But that doesn't mean it...