Comments on: Introducing Joda Time: The smart date API https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/ Friends of Oracle and Java Thu, 23 Apr 2015 12:54:46 +0000 hourly 1 http://wordpress.org/?v=4.2 By: Kaushik Gopal https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/#comment-7114 Wed, 14 Mar 2012 06:31:54 +0000 http://technology.amis.nl/blog/?p=5604#comment-7114 Hey Luc,

Great Stuff! A common issue I’ve noticed for ADF+Joda users is inter-conversion between the stock oracle.jbo.domain.Date that comes with ADF and Joda’s DateTime. I’ve written a blog post detailing just this: http://journal.kaush.co/438/how-to-convert-between-joda-and-oracles-date-classes . Hope your readers find it useful.

Rock on!

]]>
By: shwetha https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/#comment-5781 Fri, 10 Feb 2012 16:47:37 +0000 http://technology.amis.nl/blog/?p=5604#comment-5781 Hi,
Can anyone please help on how to create only Time (without date) and calculate intervals between 2 times. I need a way to convert a string like 11:30 to time..

]]>
By: Luc Bors https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/#comment-5780 Sun, 06 Mar 2011 20:33:44 +0000 http://technology.amis.nl/blog/?p=5604#comment-5780 Hi ana,
No experience on that, but what I learn from the JODA-time wiki (http://joda-time.sourceforge.net/cal_islamic.html) is below. Take a look a that wiki
 
// setup date object for midday on May Day 2004 (ISO year 2004)
DateTime dtISO = new DateTime(2004, 5, 1, 12, 0, 0, 0);

// find out what the same instant is using the Islamic Chronology

DateTime dtIslamic = dtISO.withChronology(IslamicChronology.getInstance());

]]>
By: ana https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/#comment-5779 Thu, 03 Mar 2011 12:12:33 +0000 http://technology.amis.nl/blog/?p=5604#comment-5779 Hey Hi,
can you please help me by suggesting How to use Islamic Calendar /Lunar Calendar with JodoTime. Please tell me as soon as possible.
Thank You

]]>
By: Luc Bors https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/#comment-5778 Wed, 12 Aug 2009 10:48:48 +0000 http://technology.amis.nl/blog/?p=5604#comment-5778 Hi Robert,

according to the component documentation the inputDate only accepts java.util.Date.

If you need the value as a LocalDate instance, you could try to do the following:

Use the org.joda.time.LocalDate date untill you have to actually show the date in the adf component. In other words: bind the to a java.util.Date date, and in the getter you first get the org.joda.time.LocalDate date and convert it to a java.util.Date date, which is the date that you return.

When the date is changed, you can use a valueChangeListener which converts the java.util.Date date to the org.joda.time.LocalDate date.

I wish a had a different answer, but I don’t. Let me know the solution you pick.

Say hello to the rest of the team, and good luck with the next phase in the project !

]]>
By: Robert Willems https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/#comment-5777 Mon, 10 Aug 2009 11:51:11 +0000 http://technology.amis.nl/blog/?p=5604#comment-5777 Hi Luc,

how do you configure the af:inputDate to bind to a value that is a LocalDate instance?
It seems to want to set the model to an java.util.Date :(

Regards,
Robert (and the rest of the team ;-))

]]>
By: Jasper Fontaine https://technology.amis.nl/2009/06/16/introducing-joda-time-the-smart-date-api/#comment-5776 Wed, 17 Jun 2009 06:24:35 +0000 http://technology.amis.nl/blog/?p=5604#comment-5776 For some additional fun, try doing this:

DateTimeFormatter formatter =
DateTimeFormat.forPattern(“yyyy-MM-dd HH:mm:ss.S”).withLocale(DUTCH_LOCALE);
DateTime dt = formatter.parseDateTime(“1893-03-31 23:53:28.0″);
System.out.println(dt.toDate());

:)

]]>