jQuer convert C# datetime type to proper datetime and display it in jquery datatable : <p>I have a datetime (mssql) in my database which looks basically like this:</p>

<pre><code>2018-03-27 17:50:38.703
</code></pre>

<p>When I try to display it in my jQuery datatable it looks like this:</p>

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

<p>The jQuery datatable requires this date format which is valid for sorting:</p>

<pre><code>dd-MM-yy 
</code></pre>

<p>I have tried to convert it like this:</p>

<pre><code>new Date(data).toString('dd-MM-yy')
</code></pre>

<p>But I'm getting value as:</p>

<pre><code>Invalid Date
</code></pre>

<p>What am I doing wrong here? How can I convert it to a proper jQuery datatable format dd-MM-yy ?</p>

<p>Can someone help me out?</p>
