<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web development helpdesk &#187; date</title>
	<atom:link href="http://helpdesk.objects.com.au/tag/date/feed" rel="self" type="application/rss+xml" />
	<link>http://helpdesk.objects.com.au</link>
	<description>objects quality - the visible difference</description>
	<lastBuildDate>Mon, 06 Sep 2010 08:12:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How do I add a specified number of minutes to a Java Date?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-minutes-to-a-java-date?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-do-i-add-a-specified-number-of-minutes-to-a-java-date</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-minutes-to-a-java-date#comments</comments>
		<pubDate>Sat, 12 Sep 2009 23:12:58 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[minutes]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1196</guid>
		<description><![CDATA[The Calendar class can be used to do a variety of date arithmetic Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.MINUTE, numberOfMinutes); date = cal.getTime(); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this to Google Bookmarks Share this on LinkedIn Clip this to Evernote Share this on [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-minutes-to-a-java-date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I add a specified number of months to a Java Date?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-months-to-a-java-date?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-do-i-add-a-specified-number-of-months-to-a-java-date</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-months-to-a-java-date#comments</comments>
		<pubDate>Sat, 12 Sep 2009 23:12:10 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[date]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-months-to-a-java-date</guid>
		<description><![CDATA[The Calendar class can be used to do a variety of date arithmetic Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.MONTH, numberOfMonths); date = cal.getTime(); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this to Google Bookmarks Share this on LinkedIn Clip this to Evernote Share this on [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-months-to-a-java-date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I add a specified number of days to a Java Date?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-days-to-a-java-date?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-do-i-add-a-specified-number-of-days-to-a-java-date</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-days-to-a-java-date#comments</comments>
		<pubDate>Sat, 12 Sep 2009 23:10:51 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[date]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1191</guid>
		<description><![CDATA[The Calendar class can be used to do a variety of date arithmetic Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.DATE, numberOfDays); date = cal.getTime(); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this to Google Bookmarks Share this on LinkedIn Clip this to Evernote Share this on [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-days-to-a-java-date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to calculate the difference between two Date&#8217;s or times</title>
		<link>http://helpdesk.objects.com.au/java/how-to-calculate-the-difference-between-two-dates-or-times?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-calculate-the-difference-between-two-dates-or-times</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-calculate-the-difference-between-two-dates-or-times#comments</comments>
		<pubDate>Sat, 12 Sep 2009 23:05:11 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[DateFormat]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[elapsed]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1185</guid>
		<description><![CDATA[Problem is you have two Date instances and you want to get the elapsed time between them. Getting the number of seconds is easy, you can just take the difference of value returned by the getTime() method. long elapsed = end.getTime() - start.getTime(); But what if you want to know how many days, hours and [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-calculate-the-difference-between-two-dates-or-times/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a Date for a specific day</title>
		<link>http://helpdesk.objects.com.au/java/how-to-create-a-date-for-a-specific-day?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-create-a-date-for-a-specific-day</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-create-a-date-for-a-specific-day#comments</comments>
		<pubDate>Mon, 03 Aug 2009 01:00:48 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[GregorianCalendar]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1118</guid>
		<description><![CDATA[All the constructors and methods of the Date class that allow you to set the date value are deprecated so how do we set a Date instance to the date we need it to be. Answer is to use the Calendar class and use the various set() methods to set the date required. Once you [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-create-a-date-for-a-specific-day/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the timezone offset for a specific date?</title>
		<link>http://helpdesk.objects.com.au/java/how-to-get-the-timezone-offset-for-a-specific-date?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-get-the-timezone-offset-for-a-specific-date</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-get-the-timezone-offset-for-a-specific-date#comments</comments>
		<pubDate>Wed, 01 Apr 2009 01:01:47 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=860</guid>
		<description><![CDATA[The TimeZone class has a getOffset() method that will return the offset for a specified date. For example to get the timezone offset for today you would use the following: Date today = new Date(); TimeZone tz = TimeZone.getDefault(); long offset = tz.getOffset(today); Subscribe to the comments for this post? Email this to a friend? [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-get-the-timezone-offset-for-a-specific-date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I add a specified number of hours to a Java Date?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-hours-to-a-java-date?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-do-i-add-a-specified-number-of-hours-to-a-java-date</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-hours-to-a-java-date#comments</comments>
		<pubDate>Mon, 13 Oct 2008 00:37:34 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[date]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=448</guid>
		<description><![CDATA[The Calendar class can be used to do a variety of date arithmetic Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.HOUR, numberOfHours); date = cal.getTime(); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this to Google Bookmarks Share this on LinkedIn Clip this to Evernote Share this on [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-add-a-specified-number-of-hours-to-a-java-date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I format a Date as a String?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-format-a-date-as-a-string?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-do-i-format-a-date-as-a-string</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-format-a-date-as-a-string#comments</comments>
		<pubDate>Wed, 01 Oct 2008 13:16:02 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=371</guid>
		<description><![CDATA[Either use the format() method of the SimpleDateFormat class, or the (static) format() method of the String class. DateFormat dateFormat = new SimpleDateFormat(&#34;hhmmddMMyy&#34;); Date today = new Date(); String formatted = dateFormat.format(today); String formatted2 = String.format(&#34;%&#60;tH%&#60;tM%&#60;tS%tY%&#60;tm%&#60;td&#34;, today); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-format-a-date-as-a-string/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How can I iterate through all dates in a range?</title>
		<link>http://helpdesk.objects.com.au/java/how-can-i-iterate-through-all-dates-in-a-range?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-can-i-iterate-through-all-dates-in-a-range</link>
		<comments>http://helpdesk.objects.com.au/java/how-can-i-iterate-through-all-dates-in-a-range#comments</comments>
		<pubDate>Wed, 01 Oct 2008 12:23:15 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[iterator]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=329</guid>
		<description><![CDATA[The following custom iterator allows iteration through a date range. import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.Iterator; import java.util.Map; public class DateIterator implements Iterator&#60;Date&#62;, Iterable&#60;Date&#62; { private Calendar end = Calendar.getInstance(); private Calendar current = Calendar.getInstance(); public DateIterator(Date start, Date end) { this.end.setTime(end); this.end.add(Calendar.DATE, -1); this.current.setTime(start); this.current.add(Calendar.DATE, -1); } public boolean hasNext() { return [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-can-i-iterate-through-all-dates-in-a-range/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How do I parse a Java String that specifies a Date?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-parse-a-java-string-that-specifies-a-date?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-do-i-parse-a-java-string-that-specifies-a-date</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-parse-a-java-string-that-specifies-a-date#comments</comments>
		<pubDate>Wed, 01 Oct 2008 12:16:45 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=323</guid>
		<description><![CDATA[Use the parse() method of the SimpleDateFormat class. You can use setLenient(false) to force strict parsing. DateFormat dateFormat = new SimpleDateFormat(&#34;hh:mm dd/MM/yy&#34;); dateFormat.setLenient(false); Date d = dateFormat.parse(&#34;06:23 01/05/06&#34;); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this to Google Bookmarks Share this on LinkedIn Clip this [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-parse-a-java-string-that-specifies-a-date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
