Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joda Equivalent of Date data structure

Tags:

java

jodatime

The Date data structure from java.util is almost being depreciated. Hence, we use to have our very own data structure to represent Date (With year, month and date only. No time information)

SimpleDate

I was wondering is there any equivalent data structure in Joda library?

If my project would like to convert to use Joda, there are some extra work. Because previously my project is using convention in Java Calendar, by having January as 0. In Joda, the January is 1

like image 967
Cheok Yan Cheng Avatar asked Sep 06 '25 22:09

Cheok Yan Cheng


1 Answers

Joda uses LocalDate to represent a date without time or timezone information.

like image 192
Don Roby Avatar answered Sep 10 '25 02:09

Don Roby