<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Escapades in Asp.Net Development</title>
	<atom:link href="http://camsmac.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://camsmac.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 08 Apr 2009 05:27:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='camsmac.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Escapades in Asp.Net Development</title>
		<link>http://camsmac.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://camsmac.wordpress.com/osd.xml" title="Escapades in Asp.Net Development" />
	<atom:link rel='hub' href='http://camsmac.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Jquery tablesort and dates.</title>
		<link>http://camsmac.wordpress.com/2009/04/08/jquery-tablesort-and-dates/</link>
		<comments>http://camsmac.wordpress.com/2009/04/08/jquery-tablesort-and-dates/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 04:22:04 +0000</pubDate>
		<dc:creator>ozhug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://camsmac.wordpress.com/?p=3</guid>
		<description><![CDATA['dd MMM yy' date parsers for jquery tablesort <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=camsmac.wordpress.com&amp;blog=7278398&amp;post=3&amp;subd=camsmac&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>having googled for  a date parsers for jquery&#8217;s excellent  tablesort and not finding one to do the job i was after. I have posted mine here. (it is of course bigger than required and still includs debugging variables so that you can check the values created as they are sorted using firebug or your favorite jscript debugger)</p>
<p>The dates i wanted to sort were &#8216;dd MMM yy&#8217;  e.g. 3 JAN 09   , 13 FEB 09 etc.</p>
<p>The examples of other tablesort parsers i found failed on empty sorts so I choose to have empty values as max date values . hence the </p>
<pre>var nd = new date('12/12/9999').gettime();</pre>
<p>you will of course change this if this does not match your needs. </p>
<p>so here it is.</p>
<p> </p>
<pre> $.tablesorter.addParser({
            // set a unique id
            id: 'dates',
            is: function(s) {
                // return false so this parser is not auto detected
                return false;
            },
            format: function(s) {
                // split
            // if s is empty then max date
                var nd = new Date("12/12/9999").getTime();
                if (s != "") {
                    var a = s.split(' ');
                    // get month num
                    a[1] = this.getMonth(a[1]);
                    // glue and return a new date
                    var ad = a[1] + '/' + a[0] + '/' + '20' + a[2];
                    nd = new Date(ad).getTime();
                }
                return nd;
            },
            getMonth: function(s) {
                var m = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
                var l = m.length;
                for (var i = 0; i &lt; l; i++) {
                    if (m[i] == s.toLowerCase()) {
                        return (i + 1);
                    }
                }
            },
            // set type, either numeric or text
            type: 'numeric'
        });</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/camsmac.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/camsmac.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/camsmac.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/camsmac.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/camsmac.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/camsmac.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/camsmac.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/camsmac.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/camsmac.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/camsmac.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/camsmac.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/camsmac.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/camsmac.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/camsmac.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=camsmac.wordpress.com&amp;blog=7278398&amp;post=3&amp;subd=camsmac&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://camsmac.wordpress.com/2009/04/08/jquery-tablesort-and-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b874d3fd4a28faa956a7c530360f9e4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ozhug</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://camsmac.wordpress.com/2009/04/08/hello-world/</link>
		<comments>http://camsmac.wordpress.com/2009/04/08/hello-world/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 04:10:15 +0000</pubDate>
		<dc:creator>ozhug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=camsmac.wordpress.com&amp;blog=7278398&amp;post=1&amp;subd=camsmac&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/camsmac.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/camsmac.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/camsmac.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/camsmac.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/camsmac.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/camsmac.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/camsmac.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/camsmac.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/camsmac.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/camsmac.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/camsmac.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/camsmac.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/camsmac.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/camsmac.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=camsmac.wordpress.com&amp;blog=7278398&amp;post=1&amp;subd=camsmac&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://camsmac.wordpress.com/2009/04/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b874d3fd4a28faa956a7c530360f9e4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ozhug</media:title>
		</media:content>
	</item>
	</channel>
</rss>
