<?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: Date Formatter Examples &#8211; Take 3: Date from String</title>
	<atom:link href="http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html</link>
	<description>iOS and Objective-C Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Sat, 19 May 2012 05:15:17 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: RBNiranjan</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-68621</link>
		<dc:creator>RBNiranjan</dc:creator>
		<pubDate>Mon, 19 Mar 2012 08:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-68621</guid>
		<description>Hi
 I have &quot;2011-03-25 22:30:00 EST&quot; that string . and i want convert it  nsdate with 2011-03-25 22:30:00 +0000
that formate so how 
i change please hlep</description>
		<content:encoded><![CDATA[<p>Hi<br />
 I have &#8220;2011-03-25 22:30:00 EST&#8221; that string . and i want convert it  nsdate with 2011-03-25 22:30:00 +0000<br />
that formate so how<br />
i change please hlep</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saravanan</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-64392</link>
		<dc:creator>saravanan</dc:creator>
		<pubDate>Wed, 14 Dec 2011 08:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-64392</guid>
		<description>7th, sept 2011 how to get this format?</description>
		<content:encoded><![CDATA[<p>7th, sept 2011 how to get this format?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-60410</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Wed, 21 Sep 2011 11:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-60410</guid>
		<description>GOT IT!

Needed to put &#039; &#039; around the &#039;T&#039; and &#039;Z&#039; like this:

@&quot;yyyy-MM-dd&#039;T&#039;HH:mm:ss&#039;Z&#039;&quot;;</description>
		<content:encoded><![CDATA[<p>GOT IT!</p>
<p>Needed to put &#8216; &#8216; around the &#8216;T&#8217; and &#8216;Z&#8217; like this:</p>
<p>@&#8221;yyyy-MM-dd&#8217;T'HH:mm:ss&#8217;Z'&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-60406</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Wed, 21 Sep 2011 10:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-60406</guid>
		<description>Is this the right way to go?

//-------------------------------- CODE ----------------------------------

NSString *dateStr = @&quot;2011-09-19T12:23:51Z&quot;;
 
// Convert string to date objekt
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
dateFormat.dateFormat = @&quot;yyyy-MM-ddThh:mm:ssZ&quot;;
NSDate *date = [dateFormat dateFromString:dateStr];  
 
// Convert date object to desired output format
[dateFormat setDateFormat:@&quot;dd. MMMM yyyy&quot;];
dateStr = [dateFormat stringFromDate:date];  
[dateFormat release];

//---------------------------- CODE ENDS ------------------------------</description>
		<content:encoded><![CDATA[<p>Is this the right way to go?</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; CODE &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>NSString *dateStr = @&#8221;2011-09-19T12:23:51Z&#8221;;</p>
<p>// Convert string to date objekt<br />
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];<br />
dateFormat.dateFormat = @&#8221;yyyy-MM-ddThh:mm:ssZ&#8221;;<br />
NSDate *date = [dateFormat dateFromString:dateStr];  </p>
<p>// Convert date object to desired output format<br />
[dateFormat setDateFormat:@"dd. MMMM yyyy"];<br />
dateStr = [dateFormat stringFromDate:date];<br />
[dateFormat release];</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- CODE ENDS &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-60405</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Wed, 21 Sep 2011 09:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-60405</guid>
		<description>Hi
Thanks for sharing. I&#039;m having a problem though. 
I need to convert the following string into af date object: 2011-09-19T12:23:51Z

And then convert the date object back to a string with this format: 19. september 2011

I can&#039;t figure out what the &quot;T&quot; and &quot;Z&quot; is all about?
Can anyone help me?

Kind regards
Jesper</description>
		<content:encoded><![CDATA[<p>Hi<br />
Thanks for sharing. I&#8217;m having a problem though.<br />
I need to convert the following string into af date object: 2011-09-19T12:23:51Z</p>
<p>And then convert the date object back to a string with this format: 19. september 2011</p>
<p>I can&#8217;t figure out what the &#8220;T&#8221; and &#8220;Z&#8221; is all about?<br />
Can anyone help me?</p>
<p>Kind regards<br />
Jesper</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Tisman</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-60022</link>
		<dc:creator>Glenn Tisman</dc:creator>
		<pubDate>Sat, 10 Sep 2011 23:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-60022</guid>
		<description>How can I confirm whether an allowable date string i.e. xx/xx/xx or xx/xx/xxxx has been entered into a textfield?

I take the string in code and convert it to a date and do math on the date. All is well if the date string is added properly as shown above. I have to validate the entry string and don&#039;t know how.

Thanks</description>
		<content:encoded><![CDATA[<p>How can I confirm whether an allowable date string i.e. xx/xx/xx or xx/xx/xxxx has been entered into a textfield?</p>
<p>I take the string in code and convert it to a date and do math on the date. All is well if the date string is added properly as shown above. I have to validate the entry string and don&#8217;t know how.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kdgf</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-54236</link>
		<dc:creator>kdgf</dc:creator>
		<pubDate>Mon, 27 Jun 2011 11:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-54236</guid>
		<description>cool..........</description>
		<content:encoded><![CDATA[<p>cool&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: narayanarao</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-47880</link>
		<dc:creator>narayanarao</dc:creator>
		<pubDate>Thu, 28 Apr 2011 07:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-47880</guid>
		<description>thaks, .. but i watn time format also .. iam getting the time format  from webservice like this &quot;0000&quot; .Now i want to be done this format into &quot;00:00&quot;. How to do this. plz post me..</description>
		<content:encoded><![CDATA[<p>thaks, .. but i watn time format also .. iam getting the time format  from webservice like this &#8220;0000&#8243; .Now i want to be done this format into &#8220;00:00&#8243;. How to do this. plz post me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saravanan</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-38817</link>
		<dc:creator>saravanan</dc:creator>
		<pubDate>Thu, 27 Jan 2011 08:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-38817</guid>
		<description>Thanks . Really Good…. .plz post me link of ref.</description>
		<content:encoded><![CDATA[<p>Thanks . Really Good…. .plz post me link of ref.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mangesh vyas</title>
		<link>http://MobileDeveloperTips.com/cocoa/date-formatters-examples-take-3.html#comment-36814</link>
		<dc:creator>Mangesh vyas</dc:creator>
		<pubDate>Fri, 07 Jan 2011 07:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1072#comment-36814</guid>
		<description>Hey Thanks.....
Exactly what I want.. Really Good....</description>
		<content:encoded><![CDATA[<p>Hey Thanks&#8230;..<br />
Exactly what I want.. Really Good&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

