<?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 4: Setting Locale</title>
	<atom:link href="http://iPhoneDeveloperTips.com/cocoa/date-formatter-examples-take-4-setting-locale.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/cocoa/date-formatter-examples-take-4-setting-locale.html</link>
	<description>iOS Developer Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:31:16 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dinesh</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/date-formatter-examples-take-4-setting-locale.html#comment-33049</link>
		<dc:creator>Dinesh</dc:creator>
		<pubDate>Sat, 27 Nov 2010 10:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2531#comment-33049</guid>
		<description>I have date picker with NSDateFormatterMediumStyle and its format is change according to region format and i want to show the selected date in text field but the formate of date that displayed in the textfield is not what it displayed on date picker.
i set the dateFormatter using the following code.

NSLocale *currentLocale = [NSLocale currentLocale];
NSDateFormatter *newDateFomatter=[[NSDateFormatter alloc] init];
[newDateFomatter setDateStyle:NSDateFormatterMediumStyle];
[newDateFomatter setLocale:currentLocale];

some time it work. but some it does’t work.

like the date format of date selected in datePicker is 2010 Nov 12

and the data in text field is 12 Nov 2010

I want to have the format of both same .</description>
		<content:encoded><![CDATA[<p>I have date picker with NSDateFormatterMediumStyle and its format is change according to region format and i want to show the selected date in text field but the formate of date that displayed in the textfield is not what it displayed on date picker.<br />
i set the dateFormatter using the following code.</p>
<p>NSLocale *currentLocale = [NSLocale currentLocale];<br />
NSDateFormatter *newDateFomatter=[[NSDateFormatter alloc] init];<br />
[newDateFomatter setDateStyle:NSDateFormatterMediumStyle];<br />
[newDateFomatter setLocale:currentLocale];</p>
<p>some time it work. but some it does’t work.</p>
<p>like the date format of date selected in datePicker is 2010 Nov 12</p>
<p>and the data in text field is 12 Nov 2010</p>
<p>I want to have the format of both same .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinesh</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/date-formatter-examples-take-4-setting-locale.html#comment-33048</link>
		<dc:creator>Dinesh</dc:creator>
		<pubDate>Sat, 27 Nov 2010 10:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2531#comment-33048</guid>
		<description>I  have date picker with NSDateFormatterMediumStyle and its format is change according to region format and i want to show the selected  date in text field but the formate of date that displayed in the textfield is not what it displayed on date picker.
i set the dateFormatter using the following code.

                                NSLocale *currentLocale = [NSLocale currentLocale];
				NSDateFormatter *newDateFomatter=[[NSDateFormatter alloc] init];
				[newDateFomatter setDateStyle:NSDateFormatterMediumStyle];
				[newDateFomatter setLocale:currentLocale];
				
some time it work. but some it does&#039;t work.

like the date format of date selected in textfield is 2010 Nov 12

and the data in text field is 12 Nov 2010

I want to have the format of both same .</description>
		<content:encoded><![CDATA[<p>I  have date picker with NSDateFormatterMediumStyle and its format is change according to region format and i want to show the selected  date in text field but the formate of date that displayed in the textfield is not what it displayed on date picker.<br />
i set the dateFormatter using the following code.</p>
<p>                                NSLocale *currentLocale = [NSLocale currentLocale];<br />
				NSDateFormatter *newDateFomatter=[[NSDateFormatter alloc] init];<br />
				[newDateFomatter setDateStyle:NSDateFormatterMediumStyle];<br />
				[newDateFomatter setLocale:currentLocale];</p>
<p>some time it work. but some it does&#8217;t work.</p>
<p>like the date format of date selected in textfield is 2010 Nov 12</p>
<p>and the data in text field is 12 Nov 2010</p>
<p>I want to have the format of both same .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/date-formatter-examples-take-4-setting-locale.html#comment-24617</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 01 Sep 2010 18:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2531#comment-24617</guid>
		<description>The Japanese example is not a good one because the date format in Japan is usually yyyy年mm月dd日.
To truly set the formatter such that it&#039;s aware of the locale (instead of just translating the name of the month), you must use [formatter setDateStyle:].</description>
		<content:encoded><![CDATA[<p>The Japanese example is not a good one because the date format in Japan is usually yyyy年mm月dd日.<br />
To truly set the formatter such that it&#8217;s aware of the locale (instead of just translating the name of the month), you must use [formatter setDateStyle:].</p>
]]></content:encoded>
	</item>
</channel>
</rss>

