<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Javascript date parsing and formatting, Part 2</title>
	<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/</link>
	<description>Stay curious!</description>
	<pubDate>Thu, 24 Jul 2008 00:15:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Elven</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-14259</link>
		<author>Elven</author>
		<pubDate>Thu, 28 Feb 2008 20:57:10 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-14259</guid>
		<description>found a bug in getLastDayOfMonth :
Date.prototype.getLastDayOfMonth = function() {
    this.getDaysInMonth();
...
}
otherwise ot gets 28 days for february in leap years :), sorry for the previous post</description>
		<content:encoded><![CDATA[<p>found a bug in getLastDayOfMonth :<br />
Date.prototype.getLastDayOfMonth = function() {<br />
    this.getDaysInMonth();<br />
&#8230;<br />
}<br />
otherwise ot gets 28 days for february in leap years :), sorry for the previous post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elven</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-14258</link>
		<author>Elven</author>
		<pubDate>Thu, 28 Feb 2008 20:55:49 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-14258</guid>
		<description>found a bug:
Date.prototype.getLastDayOfMonth = function() {
    var day = (this.getDay()   (Date.daysInMonth[this.getMonth()] - this.getDate())) % 7;
    return (day </description>
		<content:encoded><![CDATA[<p>found a bug:<br />
Date.prototype.getLastDayOfMonth = function() {<br />
    var day = (this.getDay()   (Date.daysInMonth[this.getMonth()] - this.getDate())) % 7;<br />
    return (day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-5884</link>
		<author>Morten</author>
		<pubDate>Fri, 20 Apr 2007 17:13:33 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-5884</guid>
		<description>&lt;p&gt;Beautiful. Thank you.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Beautiful. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-5825</link>
		<author>Xaprb</author>
		<pubDate>Wed, 18 Apr 2007 00:23:59 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-5825</guid>
		<description>&lt;p&gt;You can donate via PayPal if you'd like.  There's a link from the homepage of the blog.  I'm glad this helped you!&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>You can donate via PayPal if you&#8217;d like.  There&#8217;s a link from the homepage of the blog.  I&#8217;m glad this helped you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steven</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-5795</link>
		<author>steven</author>
		<pubDate>Mon, 16 Apr 2007 22:37:43 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-5795</guid>
		<description>&lt;p&gt;This is exactly what I was hoping I would find. Thank you so much. Where can I send money?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>This is exactly what I was hoping I would find. Thank you so much. Where can I send money?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JW</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-2727</link>
		<author>JW</author>
		<pubDate>Mon, 04 Dec 2006 19:17:41 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-2727</guid>
		<description>&lt;p&gt;Just wanted to say: very cool. I've been looking for something like this in JavaScript, and the code-generation approach is very clever. FYI, I discovered this from its inclusion in the yui-ext library.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Just wanted to say: very cool. I&#8217;ve been looking for something like this in JavaScript, and the code-generation approach is very clever. FYI, I discovered this from its inclusion in the yui-ext library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-2178</link>
		<author>Bill</author>
		<pubDate>Fri, 13 Oct 2006 16:15:34 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-2178</guid>
		<description>&lt;p&gt;I was initially looking for a php solution that would accept a date in any format (since I don't know ahead of time what format it will be in) and return it in a standard format.  Looking for that, I stumbled across this page.&lt;/p&gt;

&lt;p&gt;Doing a little testing though, I was unable to get your solution to output anything for:  "2006-10-11T08:00:52+01:00".&lt;/p&gt;

&lt;p&gt;I tried Date.parseDate("2006-10-11T08:00:52+01:00", "Y-m-d\TH:i:sO"); but that didn't do the trick.  I did however notice that in Date.Patterns there were these two listed:&lt;/p&gt;

&lt;pre&gt;    SortableDateTimePattern: "Y-m-d\\TH:i:s"
    UniversalSortableDateTimePattern: "Y-m-d H:i:sO"&lt;/pre&gt;

&lt;p&gt;but not&lt;/p&gt;

&lt;pre&gt;    "Y-m-d\TH:i:sO" or "Y-m-d\\TH:i:sO"&lt;/pre&gt;

&lt;p&gt;which seemed like what may be needed.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I was initially looking for a php solution that would accept a date in any format (since I don&#8217;t know ahead of time what format it will be in) and return it in a standard format.  Looking for that, I stumbled across this page.</p>
<p>Doing a little testing though, I was unable to get your solution to output anything for:  &#8220;2006-10-11T08:00:52+01:00&#8243;.</p>
<p>I tried Date.parseDate(&#8221;2006-10-11T08:00:52+01:00&#8243;, &#8220;Y-m-d\TH:i:sO&#8221;); but that didn&#8217;t do the trick.  I did however notice that in Date.Patterns there were these two listed:</p>
<pre>    SortableDateTimePattern: "Y-m-d\TH:i:s"
    UniversalSortableDateTimePattern: "Y-m-d H:i:sO"</pre>
<p>but not</p>
<pre>    "Y-m-dTH:i:sO" or "Y-m-d\TH:i:sO"</pre>
<p>which seemed like what may be needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-1484</link>
		<author>Xaprb</author>
		<pubDate>Mon, 14 Aug 2006 10:41:06 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-1484</guid>
		<description>&lt;p&gt;Hi Will, thanks for writing in.  Please let me know how the /i works; that was what I would have tried too.  Obviously I haven't given this any attention for a while.  There's just too much else going on.  I have no idea where that document.write came from.  I don't even use such things for debugging.&lt;/p&gt;

&lt;p&gt;I really need to just spend an hour or two with this and make sure it's up to speed...&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Hi Will, thanks for writing in.  Please let me know how the /i works; that was what I would have tried too.  Obviously I haven&#8217;t given this any attention for a while.  There&#8217;s just too much else going on.  I have no idea where that document.write came from.  I don&#8217;t even use such things for debugging.</p>
<p>I really need to just spend an hour or two with this and make sure it&#8217;s up to speed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Holley</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-1482</link>
		<author>Will Holley</author>
		<pubDate>Mon, 14 Aug 2006 09:35:43 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-1482</guid>
		<description>&lt;p&gt;Thanks for a great set of date extensions! The casing issue could also be done by adding /i to the regex string generated i think (will have to try that now...). Also, there is a document.write (presumably) debug statement in the getWeekOfYear function which needs removing.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for a great set of date extensions! The casing issue could also be done by adding /i to the regex string generated i think (will have to try that now&#8230;). Also, there is a document.write (presumably) debug statement in the getWeekOfYear function which needs removing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-1048</link>
		<author>Xaprb</author>
		<pubDate>Sat, 08 Jul 2006 22:31:50 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/12/20/javascript-date-parsing/#comment-1048</guid>
		<description>&lt;p&gt;Rich, I'll try to make that change soon (think "soon in the grand scheme of things" :-).  Thanks for the idea though!  I did not think of that.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Rich, I&#8217;ll try to make that change soon (think &#8220;soon in the grand scheme of things&#8221; :-).  Thanks for the idea though!  I did not think of that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
