title: jquery datatable sort plugin for date type mm/dd/yyyy hh:mmAM/PM
body: <p>Really stuck on big problem. I need to sort a date column.But the date format is `mm/dd/yyyy hh:mmAM/PM. I tried till</p>
  
  <pre><code>jQuery.fn.dataTableExt.oSort['uk_date-asc']  = function(a,b) { 
      var ukDatea = $(a).text().split('/'); 
      var ukDateb = $(b).text().split('/'); 
  
      var x = (ukDatea[2] + ukDatea[0] + ukDatea[1]) * 1; 
      var y = (ukDateb[2] + ukDateb[0] + ukDateb[1]) * 1; 
       console.log("here");
      return ((x &lt; y) ? -1 : ((x &gt; y) ?  1 : 0)); 
  }; 
  
  jQuery.fn.dataTableExt.oSort['uk_date-desc'] = function(a,b) { 
      var ukDatea = $(a).text().split('/');
      var ukDateb = $(b).text().split('/'); 
  
      var x = (ukDatea[2] + ukDatea[0] + ukDatea[1]) * 1; 
      var y = (ukDateb[2] + ukDateb[0] + ukDateb[1]) * 1; 
  
      return ((x &lt; y) ? 1 : ((x &gt; y) ?  -1 : 0)); 
  } 
  </code></pre>
  
  <p>but now i don't have any idea how to include time .Please guys help me.</p>