View Full Version : [CLOSED] MVC Json and Date field type

Oct 13, 2008, 5:07 PM
First off, I'm digging coolite and the vast amount of effort it saves over raw ExtJS.

I am having a small issue with Json serialized dates from the MVC framework. ExtJS does not natively support the "\/Date(1067872817000-0500)\/" format MS uses, but I found a forum post that describes a workaround. Do you think it would be possible to include this workaround in a future build of the framework? For now, I'm going to hack it in locally.




Oct 16, 2008, 11:29 PM
Just in case anyone runs into the same problem, here is the solution.

Add the following to the head of your page or master page:

<ext:ScriptContainer runat="server" />
<script language="javascript" type="text/javascript" src="/Content/FixDate.js"></script>

This will ensure the function override won't be replaced.

Download the attached file and save as FixDate.js then Enjoy!

Oct 17, 2008, 6:05 AM
Hi mthird,

Thanks! for posting the date parsing fix. This will certainly come in handy. I'll also certainly look into including the fix into coolite-core.js.

Over this weekend I going to try and build a full app using the MVC-Beta bits.

Please let us know if you run into any other MVC+Coolite issues.