Skip to content
Loading

3 Replies

Know the answer? Post it — somebody with the same question will find it here.

   
0
  • Tri Setia
    @Asma Khalid
    I'm has been try it and the result still same, I'm get result 12/04/2021 00.00.00 when the view rendered.
    problem not yet solved. 
    +1
  • Asma Khalid
    Do it like this i.e.
    1. "text/javascript" language="javascript">      
    2.     $(document).ready(function ()   
    3.     {      
    4.         $("#myTable").dataTable(      
    5.             {    
    6.                 columnDefs:  
    7.                  [{  
    8.                        targets: 4,  
    9.                        render: $.fn.dataTable.render.moment( 'D/M/YYYY' )  
    10.                  }],  
    11.   
    12.                 bLengthChange: true,      
    13.                 lengthMenu: [[10, 25, 50, 100], [10, 25, 50, 100]],      
    14.                 bFilter: true,      
    15.                 bSort: true,      
    16.                 bPaginate: true,  
    17.             });     
    18.     }) ;    
    19.      
    Where 'targets: 4' is the index of your date colu,n starting from 0.
     
    Mark answer as accepted if helpful
     
    Thanks & Regards,
    Asma Khalid
     
    For More Visit: www.asmak9.com or www.bytezaar.com
    +2