<?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>Sun, 17 Jul 2011 12:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Zeller&#8217;s Congruence in Java</title>
		<link>http://helpdesk.objects.com.au/java/zellers-congruence-in-java?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zellers-congruence-in-java</link>
		<comments>http://helpdesk.objects.com.au/java/zellers-congruence-in-java#comments</comments>
		<pubDate>Fri, 19 Nov 2010 07:04:55 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[congruence]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[gregorian]]></category>
		<category><![CDATA[zeller]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1644</guid>
		<description><![CDATA[You can use the Calendar class to get the day of the week for a particular date. But if you&#8217;re after an algorithm to do the same then Zeller&#8217;s congruence may be of interest to you. Zeller&#8217;s congruence is an algorithm devised by Christian Zeller to calculate the day of the week for any Julian [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/zellers-congruence-in-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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&#038;utm_medium=rss&#038;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(); Related posts: How do I add a specified number of hours to a Java Date? The Calendar class can be used to do a variety... How do I add a specified number [...]]]></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&#038;utm_medium=rss&#038;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(); Related posts: How do I add a specified number of hours to a Java Date? The Calendar class can be used to do a variety... How do I add a specified number [...]]]></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&#038;utm_medium=rss&#038;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(); Related posts: How do I add a specified number of hours to a Java Date? The Calendar class can be used to do a variety... How do I add a specified number [...]]]></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&#038;utm_medium=rss&#038;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&#038;utm_medium=rss&#038;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&#038;utm_medium=rss&#038;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); Related posts: How to create a Date for a specific day All [...]]]></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&#038;utm_medium=rss&#038;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(); Related posts: How do I add a specified number of days to a Java Date? The Calendar class can be used to do a variety... How do I add a specified number [...]]]></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&#038;utm_medium=rss&#038;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); Related posts: How do I parse a Java String that specifies a Date? Use the parse() method of [...]]]></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&#038;utm_medium=rss&#038;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>9</slash:comments>
		</item>
	</channel>
</rss>

