<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Introducing Joda Time: The smart date API</title>
	<atom:link href="http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api/feed" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api</link>
	<description>Weblog for the AMIS Technology corner</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:47:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shwetha</title>
		<link>http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api/comment-page-1#comment-482040</link>
		<dc:creator>shwetha</dc:creator>
		<pubDate>Fri, 10 Feb 2012 16:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=5604#comment-482040</guid>
		<description>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..</description>
		<content:encoded><![CDATA[<p>Hi,<br />
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..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc Bors</title>
		<link>http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api/comment-page-1#comment-451680</link>
		<dc:creator>Luc Bors</dc:creator>
		<pubDate>Sun, 06 Mar 2011 20:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=5604#comment-451680</guid>
		<description>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());
</description>
		<content:encoded><![CDATA[<p>Hi ana,<br />
No experience on that, but what I learn from the JODA-time wiki (<a href="http://joda-time.sourceforge.net/cal_islamic.html" rel="nofollow">http://joda-time.sourceforge.net/cal_islamic.html</a>) is below. Take a look a that wiki<br />
 <br />
// setup date object for midday on May Day 2004 (ISO year 2004)<br />
DateTime dtISO = new DateTime(2004, 5, 1, 12, 0, 0, 0);</p>
<p>// find out what the same instant is using the Islamic Chronology</p>
<p>DateTime dtIslamic = dtISO.withChronology(IslamicChronology.getInstance());</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ana</title>
		<link>http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api/comment-page-1#comment-451014</link>
		<dc:creator>ana</dc:creator>
		<pubDate>Thu, 03 Mar 2011 12:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=5604#comment-451014</guid>
		<description>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</description>
		<content:encoded><![CDATA[<p>Hey Hi,<br />
can you please help me by suggesting How to use Islamic Calendar /Lunar Calendar with JodoTime. Please tell me as soon as possible.<br />
Thank You</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc Bors</title>
		<link>http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api/comment-page-1#comment-348737</link>
		<dc:creator>Luc Bors</dc:creator>
		<pubDate>Wed, 12 Aug 2009 10:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=5604#comment-348737</guid>
		<description>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&#039;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 !</description>
		<content:encoded><![CDATA[<p>Hi Robert,</p>
<p>according to the component documentation the  inputDate only accepts java.util.Date. </p>
<p>If you need the value as a LocalDate instance, you could try to do the following:</p>
<p>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. </p>
<p>When the date is changed, you can use a valueChangeListener which converts the java.util.Date date to the org.joda.time.LocalDate date.</p>
<p>I wish a had a different answer, but I don&#8217;t. Let me know the solution you pick.</p>
<p>Say hello to the rest of the team, and good luck with the next phase in the project !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Willems</title>
		<link>http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api/comment-page-1#comment-348730</link>
		<dc:creator>Robert Willems</dc:creator>
		<pubDate>Mon, 10 Aug 2009 11:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=5604#comment-348730</guid>
		<description>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 ;-))</description>
		<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>how do you configure the af:inputDate to bind to a value that is a LocalDate instance?<br />
It seems to want to set the model to an java.util.Date <img src='http://technology.amis.nl/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Regards,<br />
Robert (and the rest of the team <img src='http://technology.amis.nl/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Fontaine</title>
		<link>http://technology.amis.nl/blog/5604/introducing-joda-time-the-smart-date-api/comment-page-1#comment-348472</link>
		<dc:creator>Jasper Fontaine</dc:creator>
		<pubDate>Wed, 17 Jun 2009 06:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=5604#comment-348472</guid>
		<description>For some additional fun, try doing this:

DateTimeFormatter formatter = 
			DateTimeFormat.forPattern(&quot;yyyy-MM-dd HH:mm:ss.S&quot;).withLocale(DUTCH_LOCALE);
DateTime dt = formatter.parseDateTime(&quot;1893-03-31 23:53:28.0&quot;);
System.out.println(dt.toDate());

:)</description>
		<content:encoded><![CDATA[<p>For some additional fun, try doing this:</p>
<p>DateTimeFormatter formatter =<br />
			DateTimeFormat.forPattern(&#8220;yyyy-MM-dd HH:mm:ss.S&#8221;).withLocale(DUTCH_LOCALE);<br />
DateTime dt = formatter.parseDateTime(&#8220;1893-03-31 23:53:28.0&#8243;);<br />
System.out.println(dt.toDate());</p>
<p> <img src='http://technology.amis.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

