Javascript Date without Time Zone
<p>I make a web-service call and the data is returned as JavaScript, which has date in it.</p>

<pre><code>    "d": [{
        "__type": "ServiceValues",
……………………..
        "DateOfServiceStart": new Date(1453093200000),
        "DateOfServiceEnd": new Date(1463457600000),
        "CreatedDateTime": new Date(1453161233940),
        "UpdatedDateTime": new Date(1453329075943),
...........
    },
</code></pre>

<p>However when using the same to display the value as received from the server, JS does not allows the same. </p>

<p>The server date is “2016-01-18 18:53:53.940” for the CreatedDateTime value received.</p>

<p>I have looked for several solutions around the same and also moment.js. But none is working.</p>

<p>I want the date to be displayed as it is received from the server.</p>

<p>Here is the snipped for the same, where none of the options is returning date as it was received from the server. </p>

<pre><code>&lt;html&gt;&lt;head&gt;&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment.min.js"&gt;&lt;/script&gt;&lt;/head&gt;&lt;Body&gt;
    &lt;div id="localDate"&gt; &lt;/div&gt;
    &lt;BR&gt;&lt;BR&gt;
    &lt;div id="time"&gt; &lt;/div&gt;
    &lt;script&gt;
        var localFormat = 'MM/DD/YYYY';

        //SERVER DATE : “2016-01-18 18:53:53.940”

        var serverDate = new Date(1453161233940);       

        var _helsenkiOffset = 2*60*60000;//maybe 3 [h*60*60000 = ms]
        var _userOffset = serverDate.getTimezoneOffset()*60000; // [min*60000 = ms]
        var _helsenkiTime = new Date(serverDate.getTime()+_helsenkiOffset+_userOffset);

        var m = moment(serverDate).format(localFormat);

        var mom = moment(1453161233940).format(localFormat);

        document.getElementById("localDate").innerHTML += _helsenkiTime + '&lt;BR&gt;';   

        document.getElementById("localDate").innerHTML += serverDate.toUTCString() + '&lt;BR&gt;';    

        document.getElementById("localDate").innerHTML += m + '&lt;BR&gt;';

        document.getElementById("localDate").innerHTML +=  mom + '&lt;BR&gt;';    

    &lt;/script&gt;

    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>