Yoda Equivalent to Date data structure

The Date data structure from java.util is almost depreciating. Therefore, we use our own data structure to represent Date (only with the year, month and date. Time information)

Simpledate

I was wondering if there is an equivalent data structure in the Joda library?

If my project wants to convert to Joda, there is additional work. Because earlier my project uses the convention in Java Calendar, having January as 0 . In Yoda January - 1

+3
source share
2 answers

Use DateTime#toLocalDate()to get local date.

LocalDate localDate = dateTime.toLocalDate();

, JodaTime 0.

+1

Joda LocalDate .

+2

Source: https://habr.com/ru/post/1779751/


All Articles