<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21732</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21732</guid>
        	        	<description><![CDATA[<p>Hi NoWoL,</p>
<p>The problem, which you describe with index having period seems for me a bug. The same problem are described <a href="http://stackoverflow.com/questions/4639476/jqgrid-sort-or-search-does-not-work-with-columns-having-json-dot-notation/4641118#4641118" target="_blank">here</a> and <a href="/blog/?page_id=393/bugs/jqgrid-sort-or-search-does-not-work-with-columns-having-json-dot-notation/" target="_blank">here</a>. I can imagine that having periods in the index can be important if database schema used on the database, but having index with period in case of pure local data (not "json" datatype and loadonce:true) and can be replaced with jsonmap. So the bug in the case makes have a simple workaround. Which scenario has you?</p>
<p>Nevertheless it is absolutely another problem not connected with the "Microsoft" data format. You can post additional information to <a href="/blog/?page_id=393/bugs/jqgrid-sort-or-search-does-not-work-with-columns-having-json-dot-notation/" target="_blank">the bug</a> report to remind Tony about the problem. I am not a developer of jqGrid and I am additionally busy for at least next two weeks. So please contact Tony about the problem yourself.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 17 Jan 2011 07:14:37 +0200</pubDate>
        </item>
        <item>
        	<title>nowol on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21730</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21730</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
<p>You are correct, I did not expect the code to change from the /pattern/modifier to the RexExp object.</p>
</p>
<p>Is there a design document for this grid?&#160; I just upgraded from 3.6.4 to 3.8.2 for the new date formatter and I found a bug and I would like to try my hand at fixing it.&#160; This is the bug: if the value of index in a colModel contains a period e.g.: "Person.Name" the value passed (sidx) to the web service contains only "Name".&#160; It worked in 3.6.4 but it was broken in 3.6.5.</p>
</p>
<p>Best regards,</p>
<p>NoWoL</p>
]]></description>
        	        	<pubDate>Mon, 17 Jan 2011 04:11:24 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21727</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21727</guid>
        	        	<description><![CDATA[<p>Hi NoWoL,</p>
<p>do you tested the code published from in GitHub or it seems to you that the RegEx is wrong? I don&#39;t yet tested the code one more time, but now the RegEx is exactly like in <a href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-3.8.2/src/jquery.fmatter-fixed.js" target="_blank">the version</a> which I used and tested many times with different data before I posted the information here.</p>
<p>Probably you use frequently the form <strong>/pattern/modifier</strong> of <strong>RegEx</strong> and not constructor of RegEx with the string literal. There are some difference in coding of backslashes in the two forms. See for example "How to Use The JavaScript RegExp Object" section of <a href="http://www.regular-expressions.info/javascript.html" target="_blank">this</a>.</p>
<p>If you will find a bug in the code you are welcome, but please test the code and post exactly <strong>which input data</strong> will be wrong converted by the code. Which result should be and which wrong result produce the code.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 16 Jan 2011 23:59:47 +0200</pubDate>
        </item>
        <item>
        	<title>nowol on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21723</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21723</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I checked the RegEx code in GitHub and there is an error in the regular expression.&#160;</p>
<p>You only need one backslash before the parentheses instead of two.</p>
</p>
<p>Cheers,</p>
<p>NoWoL</p>
]]></description>
        	        	<pubDate>Sun, 16 Jan 2011 20:01:39 +0200</pubDate>
        </item>
        <item>
        	<title>tony on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21684</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21684</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Also fixed in GitHub.&#160;</p>
<p>Hope in the future to use GitHub for such kind of patches <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
<p>Thanks again to all.</p>
<p>P.S. It is quite possible that this is not the last fix <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 15:11:12 +0200</pubDate>
        </item>
        <item>
        	<title>sugden on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21650</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21650</guid>
        	        	<description><![CDATA[<p>It&#39;s the same (open) issue. Tony has noted that it will be fixed.</p>
<p>Scott</p>
]]></description>
        	        	<pubDate>Thu, 13 Jan 2011 03:16:17 +0200</pubDate>
        </item>
        <item>
        	<title>typhoon1978 on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21622</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21622</guid>
        	        	<description><![CDATA[<p>Hi all !</p>
<p>I&#39;m using jqGrid 3.8.2 to show data coming from a ASP.NET web service.</p>
<p>As far as I understood jqGrid natively understands MS DateTime Wire Format by default (since 3.8.2) and this is good, but it renders something like:</p>
<blockquote>
<p>NaN/NaN/NaN</p>
</blockquote>
<p>Probably I have to set some "magic" string to make jqGrid understand it is reading a MS DateTime ? Is there any particular configuration ?</p>
<p>Or probably we are talking about an open issue (because I read "will be fixed") ?</p>
<p>Thanks in advance,</p>
<p>Alex</p>
]]></description>
        	        	<pubDate>Tue, 11 Jan 2011 16:16:20 +0200</pubDate>
        </item>
        <item>
        	<title>tony on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21590</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21590</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Will be fixed. Thanks.</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 09 Jan 2011 14:25:48 +0200</pubDate>
        </item>
        <item>
        	<title>sugden on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21541</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21541</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
<p>I agree - very frustrating</p>
<p>Many thanks,</p>
<p>Scott</p>
]]></description>
        	        	<pubDate>Wed, 05 Jan 2011 00:27:20 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21540</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21540</guid>
        	        	<description><![CDATA[<p>Thank you very much Scott!</p>
<p>It is very hard to here, but <strong>the forum software has really hard and evil bug</strong>. I tested carefully my code before past it here. Of cause I didn&#39;t verify the code character per character after the pasting. Not I see that from the original RegEx</p>
<pre>"^\\/Date\\\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\\\)\\\/$"</pre>
<p>4 characters (4 backslashes) was cut and we have the text</p>
<pre>"^\/Date\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\)\/$"</pre>
</p>
<p>in the code of jqGrid 3.8.2. Please try one more time with the RegEx</p>
<pre>"^\\/Date\\\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\\\)\\\/$".</pre>
<p>I don&#39;t verified other parts of the code. I&#39;m really frustrated. Moreover curently I have less free time as before.<br />It all will works OK.<br />I hope Tony will read the post and fix the code of jqGrid. If he write no comments in the next 7 days I&#39;ll post a new bug report.</p>
<p>Best regards and thanks one more time<br />Oleg</p>
]]></description>
        	        	<pubDate>Tue, 04 Jan 2011 23:39:02 +0200</pubDate>
        </item>
        <item>
        	<title>sugden on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21537</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21537</guid>
        	        	<description><![CDATA[<p>Ah &#8211; Its done it again. Lets try:</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit8263' value='Select Code' data-codeid='sfcode8263' /></p><div class='sfcode' id='sfcode8263'>var&#160;msDateRegExp&#160;=&#160;new&#160;RegExp(&#34;^/Date\\\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\\\)/$&#34;);</div></pre>
]]></description>
        	        	<pubDate>Tue, 04 Jan 2011 21:29:46 +0200</pubDate>
        </item>
        <item>
        	<title>sugden on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21536</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21536</guid>
        	        	<description><![CDATA[<p>Hi Oleg</p>
<p>My&#160;apologies - a late night.</p>
<p>I am using jqGrid 3.8.2 and it is not working with a .Net DateTime. I get NaN/NaN/NaN.</p>
<p>When I posted the reg expression I did not notice that the forum was trimming a "".</p>
<p>I feel it should be - note the double "\" before the the "(":</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit8872' value='Select Code' data-codeid='sfcode8872' /></p><div class='sfcode' id='sfcode8872'>var&#160;msDateRegExp&#160;=&#160;new&#160;RegExp(&#34;^/Date\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\)/$&#34;)</div></pre>
<pre></pre>
<pre>Thanks,</pre>
<pre>Scott</pre>
]]></description>
        	        	<pubDate>Tue, 04 Jan 2011 21:28:27 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21522</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21522</guid>
        	        	<description><![CDATA[<p>Sorry Scott,</p>
<p>but if you will read carefully the current thread, .NET DateTime format are supported starting with jqGrid 3.8.2 and not exist in jqGrid 3.8.1 which you use. Moreover in the code which I suggested and which is included in jqGrid 3.8.2 the <strong>msDateRegExp</strong> is already defined as</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6404' value='Select Code' data-codeid='sfcode6404' /></p>
<div class='sfcode' id='sfcode6404'>var msDateRegExp = new RegExp(&#34;^/Date\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\)/$&#34;);</div>
<p>So it seems to me you should just use jqGrid 3.8.2.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Tue, 04 Jan 2011 14:33:07 +0200</pubDate>
        </item>
        <item>
        	<title>sugden on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21518</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21518</guid>
        	        	<description><![CDATA[<p>Hi Tony/Oleg,</p>
<p>jqGrid 3.8.1 is not working with the .Net DateTime for me.&#160;I think your line:</p>
<p>var msDateRegExp = new RegExp("^/Date\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\)/$");</p>
<p>should be:</p>
<p>var msDateRegExp = new RegExp("^/Date\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\)/$");</p>
<p>Note the extra escape characters - let me know what you think.</p>
<p>Regards,</p>
<p>Scott</p>
]]></description>
        	        	<pubDate>Tue, 04 Jan 2011 09:15:01 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21347</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21347</guid>
        	        	<description><![CDATA[<p>Hello zippy1981,</p>
<p>Thanks for your assistance.&#160;Tony not wrote this information here, but he made the fix which I suggested (see <a href="https://github.com/tonytomov/jqGrid/commit/735cf313914a9d04af2cf3628a4cc9b740419cc0" target="_blank">here</a>) and the corresponding feature is already a part of jqGrid 3.8.2 (see the last line in the list of "additions and changes" of the jqGrid 3.8.1&#160;<a href="/jqgridwiki/doku.php?id=wiki:change#additions_and_changes" target="_blank">here</a>).</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 20 Dec 2010 01:16:27 +0200</pubDate>
        </item>
        <item>
        	<title>zippy1981 on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21344</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21344</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I would really like to see this feature too.</p>
<p>Oleg,</p>
<p>Thanks for writing this patch.</p>
]]></description>
        	        	<pubDate>Sun, 19 Dec 2010 20:04:23 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21226</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p21226</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>I made some more tests and improved my suggestion to have full support of the DateTime .NET format used by Microsoft for serialization in WFC, ASP.NET MVC or ASMX Web Services (so in all kinds of JSON DateTime serialization). The serialized format of DateTime class is described in the section "DateTime Wire Format" of <a href="http://msdn.microsoft.com/en-us/library/bb412170.aspx" rel="nofollow" target="_blank"><a href="http://msdn.microsoft.com/en-u" rel="nofollow">http://msdn.microsoft.com/en-u</a>.....12170.aspx</a>.</p>
<p>The corresponding changes in the jquery.fmatter.js can be following. The lines 142-146</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4940' value='Select Code' data-codeid='sfcode4940' /></p>
<div class='sfcode' id='sfcode4940'>if(date.constructor === Number) {<br />&#160;&#160; &#160;timestamp = new Date(date);<br /> } else if(date.constructor === Date) {<br />&#160;&#160; &#160;timestamp = date;<br /> } else {</div>
<p>should be replaced to the following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit954' value='Select Code' data-codeid='sfcode954' /></p>
<div class='sfcode' id='sfcode954'>var msDateRegExp = new RegExp(&#34;^/Date\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\)/$&#34;);<br />&#160;&#160; &#160;// the definition of msDateRegExp can be changed to static<br /> var msMatch = date.match(msDateRegExp);<br /> if(date.constructor === Number) {<br />&#160;&#160; &#160;timestamp = new Date(date);<br /> } else if(date.constructor === Date) {<br />&#160;&#160; &#160;timestamp = date;<br /> } else if (msMatch !== null) {<br />&#160;&#160; &#160;// The serialized format of DateTime class is described in the section<br />&#160;&#160; &#160;// &#34;DateTime Wire Format&#34; of <a href="http://msdn.microsoft.com/en-us/library/bb412170.aspx" rel="nofollow" target="_blank">http://msdn.microsoft.com/en-us/library/bb412170.aspx</a><br />&#160;&#160; &#160;// The date can be sent in one of the following form<br />&#160;&#160; &#160;// 1) UTC time will be sent as &#34;/Date(1291813200000)/&#34; or &#34;/Date(-167443200000)/&#34;<br />&#160;&#160; &#160;// &#160; &#160;(created for example like new DateTime(1964,09,11,0,0,0,0,DateTimeKind.Utc))<br />&#160;&#160; &#160;// 2) the local time from a time zone as &#34;/Date(1291813200000+0100)/&#34;<br />&#160;&#160; &#160;// &#160; &#160;or &#34;/Date(-167443200000+0000)/&#34;<br />&#160;&#160; &#160;//<br />&#160;&#160; &#160;// msMatch will be array with the following contain<br />&#160;&#160; &#160;// msMatch[0] - the string itself<br />&#160;&#160; &#160;// msMatch[1] - the number of milliseconds since midnight, January 1, 1970<br />&#160;&#160; &#160;// &#160; &#160; &#160; &#160; &#160; &#160; &#160;(may be negative to represent earlier times)<br />&#160;&#160; &#160;// msMatch[2] - &#39;&#39; or &#39;-&#39;. &#39;-&#39; if the time is before January 1, 1970<br />&#160;&#160; &#160;// msMatch[3] - &#39;&#39; or string like &#39;+0100&#39;<br />&#160;&#160; &#160;// msMatch[4] - &#39;&#39; or &#39;+&#39; if d[3]===&#39;+0100&#39;<br />&#160;&#160; &#160;// msMatch[5] - &#39;&#39; or &#39;01&#39; if d[3]===&#39;+0100&#39;<br />&#160;&#160; &#160;// msMatch[6] - &#39;&#39; or &#39;00&#39; if d[3]===&#39;+0100&#39;<br />&#160;&#160; &#160;timestamp = new Date(parseInt(msMatch[1], 10));<br />&#160;&#160; &#160;if (msMatch[3]) { // if timezone defined so the time is local and not Utc<br />&#160;&#160; &#160;&#160;&#160; &#160;var offset = Number(msMatch[5]) * 60 + Number(msMatch[6]);<br />&#160;&#160; &#160;&#160;&#160; &#160;offset *= ((msMatch[4] == &#39;-&#39;) ? 1 : -1);<br />&#160;&#160; &#160; &#160; &#160;offset -= timestamp.getTimezoneOffset();<br />&#160;&#160; &#160; &#160; &#160;timestamp.setTime(Number(Number(timestamp) + (offset * 60 * 1000)));<br />&#160;&#160; &#160;}<br /> } else {</div>
<p>The changes will be useful for all .NET developers. How you can see I use in the code RegExp matching, so I can really sure that the new&#160;piece&#160;of code will be executed only if the input is exactly in the correct "DateTime Wire Format" used Microsoft.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 09 Dec 2010 14:55:53 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on sopport for "Microsoft"  date format: "/Date(1285128000000)/"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p19945</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sopport-for-microsoft-date-format-date1285128000000#p19945</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>From time to time somebody ask why the date format like "/Date(1285128000000)/" are not suported by jqGrid. Today I <a href="http://stackoverflow.com/questions/3770626/asp-net-mvc-model-with-datetime-trying-to-serialize-for-json-for-jqgrid" target="_blank">answerd </a>one more time on the question on the stackoverflow.</p>
<p>Why not make a small modification of the jquery.fmatter.js to support this? It seems to me that one need to add only two lines of code for example atfter the line 144:</p>
<p>if(date.constructor === Number) {<br />&#160;&#160;&#160; timestamp = new Date(date);<br /><strong>} else if (typedef date === "string" &#38;&#38; /^\/Date\(\d+\)\/$/.test(date)) {<br />&#160;&#160;&#160; // Microsoft serialization format for date: "/Date()/"<br />&#160;&#160;&#160; timestamp = new Date(parseInt(date.substr(6,date.length-8),10));<br /></strong>} else if(date.constructor === Date) {<br />&#160;&#160;&#160; timestamp = date;</p>
<p>Bold text are the suggested lines. What do you think about this?</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 23 Sep 2010 00:14:35 +0300</pubDate>
        </item>
</channel>
</rss>