c# datetime to javascript date with new date or dataparse
<p>I have an ajax method where i request for a C# object that contains a DateTime. My javascript-console shows that i get the date in the following format:</p>

<pre><code>$.ajax({
   type: "GET",
   url: getDateTestUrl,
   dataType: "json",,
   success: function (response) {
      console.log(response.datetest);
   }
});
</code></pre>

<p>Result:</p>

<pre><code>/Date(1454513400000)/
</code></pre>

<p>How do I make this into a javascript date? I tried to use both <code>New Date()</code> and <code>Date.parse()</code></p>

<p>Example form the javascript-console:</p>

<pre><code>Date.parse('/Date(1454513400000)/');
NaN

new Date('/Date(1454513400000)/')
Invalid Date
</code></pre>