# doing date and time in Java

**URL:** https://discourse.openehr.org/t/doing-date-and-time-in-java/15731
**Category:** Reference Implementation: Java (archive)
**Created:** [4 April 2006 16:47 UTC](https://discourse.openehr.org/t/doing-date-and-time-in-java/15731 "2006-04-04T16:47:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thomas.beale](https://discourse.openehr.org/user_avatar/discourse.openehr.org/thomas.beale/32/35_2.png) [@thomas.beale](https://discourse.openehr.org/u/thomas.beale)
#### Post date: [4 April 2006 16:47 UTC](https://discourse.openehr.org/t/doing-date-and-time-in-java/15731/1 "2006-04-04T16:47:03Z")

</div>

Dear all,

It seems I am not the only person who thinks date and tme handling is  
bad in Java....see the Joda effort at  
[http://joda-time.sourceforge.net/index.html](http://joda-time.sourceforge.net/index.html)

I think we should use these libraries - they claim to get rid of many of  
the bugs etc of Java calndar classes; also they are directly ISO8601  
based - excatly what we want in openEHR.

Rong and others - do you have any objection to using this library in the  
Release 1 upgrade? I think it will reduce the coding time, and increase  
the quality.

- thomas

---

<div class="post-metadata">

### Author: ![rong.chen](https://discourse.openehr.org/user_avatar/discourse.openehr.org/rong.chen/32/515_2.png) [@rong.chen](https://discourse.openehr.org/u/rong.chen)
#### Post date: [4 April 2006 20:32 UTC](https://discourse.openehr.org/t/doing-date-and-time-in-java/15731/2 "2006-04-04T20:32:58Z")

</div>

Hi all,

It does seem to be a solid API replacing Date and Calendar from jdk.  
Pity that it's not an apache commons library, but people have been  
mentioning a possible JSR to include Joda-time into jdk. (see  
[http://weblogs.java.net/blog/mister\_\_m/archive/2006/02/tiger\_and\_dates.html](http://weblogs.java.net/blog/mister__m/archive/2006/02/tiger_and_dates.html))

I am in favor of giving it a try in the Release 1 upgrade.

Rong

Thomas Beale wrote:
