title: How to sort date with yyyy-mm-dd format. By using datatables [js]?
body: <p>I need to sort date with yyyy-mm-dd format. </p>
  
  <p><a href="http://datatables.net/blog/2014-12-18" rel="nofollow noreferrer">From this document</a>. Here is my code.</p>
  
  <pre><code>$( function () {
      $.fn.dataTable.moment('YYYY-MM-DD');
  
      $('#tbTest').DataTable();
  });
  </code></pre>
  
  <p>But I still got the wrong sort (See picture below)</p>
  
  <p><img src="https://i.stack.imgur.com/D60YC.png" alt="enter image description here"></p>
  
  <p>How can I fix this?</p>