<?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: JavaScript IsDate(): Validate date according browser locale</title>
	<atom:link href="http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/feed/" rel="self" type="application/rss+xml" />
	<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/</link>
	<description>ASP.NET, XML, SQL and Javascript tips and tricks</description>
	<lastBuildDate>Fri, 17 Feb 2012 09:16:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Yuriy</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-4084</link>
		<dc:creator>Yuriy</dc:creator>
		<pubDate>Mon, 09 May 2011 19:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-4084</guid>
		<description>@KJ Good point. Function &lt;strong&gt;checkDate&lt;/strong&gt; can use additional checks for validity of &quot;y&quot; parameter (value being numeric and within specific range). Please feel free to post an updated function here so others could benefit</description>
		<content:encoded><![CDATA[<p>@KJ Good point. Function <strong>checkDate</strong> can use additional checks for validity of &#8220;y&#8221; parameter (value being numeric and within specific range). Please feel free to post an updated function here so others could benefit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KJ</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-4083</link>
		<dc:creator>KJ</dc:creator>
		<pubDate>Mon, 09 May 2011 18:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-4083</guid>
		<description>Thanks Yuriy, but you do not have any year checks?  01/01/9999 or 01/01/mmmm which translates to 01/01/0 pass your edit checks.</description>
		<content:encoded><![CDATA[<p>Thanks Yuriy, but you do not have any year checks?  01/01/9999 or 01/01/mmmm which translates to 01/01/0 pass your edit checks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuriy</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-4067</link>
		<dc:creator>Yuriy</dc:creator>
		<pubDate>Wed, 04 May 2011 15:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-4067</guid>
		<description>@Ciao, unfortunately doesn&#039;t seem to work universally. For example in IE

isFinite(Date.parse(&#039;58/79/2011&#039;))

returns true.</description>
		<content:encoded><![CDATA[<p>@Ciao, unfortunately doesn&#8217;t seem to work universally. For example in IE</p>
<p>isFinite(Date.parse(&#8217;58/79/2011&#8242;))</p>
<p>returns true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ciao</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-4066</link>
		<dc:creator>Ciao</dc:creator>
		<pubDate>Wed, 04 May 2011 00:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-4066</guid>
		<description>There is a simpler way....

var isDateOrNot = isFinite(Date.parse(myString));</description>
		<content:encoded><![CDATA[<p>There is a simpler way&#8230;.</p>
<p>var isDateOrNot = isFinite(Date.parse(myString));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuriy</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-1122</link>
		<dc:creator>Yuriy</dc:creator>
		<pubDate>Wed, 04 Aug 2010 15:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-1122</guid>
		<description>&lt;a href=&quot;#comment-1120&quot; rel=&quot;nofollow&quot;&gt;@Chakri &lt;/a&gt; Should be pretty straightforward, replace &quot;/&quot; with &quot;-&quot; and month number with string representation.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1120" rel="nofollow">@Chakri </a> Should be pretty straightforward, replace &#8220;/&#8221; with &#8220;-&#8221; and month number with string representation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chakri</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-1120</link>
		<dc:creator>Chakri</dc:creator>
		<pubDate>Wed, 04 Aug 2010 06:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-1120</guid>
		<description>Yuriy i have resolve this issue.. and i have one more query like

i have a requirement like on selection on date i need to show that date in bellow as DD-MMM-YYYY format. 

Like if the user select 04/08/2010 from date controller then in the below of that field i need to show this date as 04-Aug-2010.

i don&#039;t have any idea, how to do this? if you have any idea please help me?</description>
		<content:encoded><![CDATA[<p>Yuriy i have resolve this issue.. and i have one more query like</p>
<p>i have a requirement like on selection on date i need to show that date in bellow as DD-MMM-YYYY format. </p>
<p>Like if the user select 04/08/2010 from date controller then in the below of that field i need to show this date as 04-Aug-2010.</p>
<p>i don&#8217;t have any idea, how to do this? if you have any idea please help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chakri</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-1119</link>
		<dc:creator>Chakri</dc:creator>
		<pubDate>Wed, 04 Aug 2010 04:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-1119</guid>
		<description>Thanks.. and now i am getting the locale format by using jQuery.. here i have one query like now i am going to validate the format like dd/mm/yyyy or mm/dd/yyy for this i was done the following changes

if (da == &quot;dd/MM/yyyy&quot;)
        iResultCode = checkDate(aD[1], aD[0], aD[2])       
    else
        iResultCode = checkDate(aD[0], aD[1], aD[2])


and i was change the checkDate(y, m, d) to checkDate(d, m, y)

i am getting aD[o]=date, 1=month, 2=year if it is //dd/mm/yyyy

based on this format i was change the aD[] array values..

But it&#039;s not works for correct date also it shows wrong format.. i am not sure where i done the mistake.. can you please help me, how to i resolve this?</description>
		<content:encoded><![CDATA[<p>Thanks.. and now i am getting the locale format by using jQuery.. here i have one query like now i am going to validate the format like dd/mm/yyyy or mm/dd/yyy for this i was done the following changes</p>
<p>if (da == &#8220;dd/MM/yyyy&#8221;)<br />
        iResultCode = checkDate(aD[1], aD[0], aD[2])<br />
    else<br />
        iResultCode = checkDate(aD[0], aD[1], aD[2])</p>
<p>and i was change the checkDate(y, m, d) to checkDate(d, m, y)</p>
<p>i am getting aD[o]=date, 1=month, 2=year if it is //dd/mm/yyyy</p>
<p>based on this format i was change the aD[] array values..</p>
<p>But it&#8217;s not works for correct date also it shows wrong format.. i am not sure where i done the mistake.. can you please help me, how to i resolve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuriy</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-1116</link>
		<dc:creator>Yuriy</dc:creator>
		<pubDate>Tue, 03 Aug 2010 12:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-1116</guid>
		<description>&lt;a href=&quot;#comment-1115&quot; rel=&quot;nofollow&quot;&gt;@Chakri &lt;/a&gt; As far as I know there&#039;s no client-side detection of the locale, but if I find out a way I will post it here.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1115" rel="nofollow">@Chakri </a> As far as I know there&#8217;s no client-side detection of the locale, but if I find out a way I will post it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chakri</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-1115</link>
		<dc:creator>Chakri</dc:creator>
		<pubDate>Tue, 03 Aug 2010 12:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-1115</guid>
		<description>with out any server side code we can&#039;t find the locale date format inside the script? If you have any idea please let me know..</description>
		<content:encoded><![CDATA[<p>with out any server side code we can&#8217;t find the locale date format inside the script? If you have any idea please let me know..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chakri</title>
		<link>http://CodeCorner.galanter.net/2010/07/20/javascript-isdate-validate-date-according-browser-locale/comment-page-1/#comment-1114</link>
		<dc:creator>Chakri</dc:creator>
		<pubDate>Tue, 03 Aug 2010 12:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://CodeCorner.galanter.net/?p=976#comment-1114</guid>
		<description>Really it&#039;s a good solution.... It&#039;s work perfect.</description>
		<content:encoded><![CDATA[<p>Really it&#8217;s a good solution&#8230;. It&#8217;s work perfect.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

