DateTime JavaScript vs C#
<p>Regardless of many posts I've read the magic still in my code.
I have DateTime value in db ('2011-03-30 00:00:00.000') that I process for asp.net/mvc page where some javascript  needs to read it and compare. The magic in the following:</p>

<pre><code>&lt;% 
DateTime unixTimeOffset = new DateTime(1970, 1, 1, 0, 0, 0, 0);
DateTime testDate = new DateTime(2011,03,30,0,0,0,0);
%&gt;
&lt;%= (testDate - unixTimeOffset).TotalMilliseconds %&gt;
...
</code></pre>

<p>Last string of the code gives me this value: 1301443200000
When I try to read it in JavaScript I have: </p>

<pre><code>val myDate = new Date(1301443200000);
</code></pre>

<p>And myDate is Tue Mar 29 2011 20:00:00 GMT-0400 (Eastern Daylight Time) {} But not a March 30th as it should be.</p>

<p>I understand it provides date referencing to local time, GMT-4 but what is the solution to get it independent? 
Any ideas? Thanks. </p>
