Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35288

How to use the plugin date-uk to sort dates in the format dd-mm-yyyy

$
0
0

How do I use the plugin-uk date to sort the column of dates in dd-mm-yyyy format .. ?? thank you..

(Como faço para usar o plugin date-uk para ordenar a coluna de datas no formato dd-mm-yyyy..?? obrigado)

Being my table with 10 columns, the column is the date the eighth. I would have to specify the type of each of them in "columnDefs" ??

( Sendo minha tabela com 10 colunas, a coluna da data é a oitava. eu teria que especificar o tipo de cada uma delas em "columnDefs" ??)

Javascript Code:

<

script type="text/javascript"> $(function(){ $('#table-producao').dataTable({ "bJQueryUI": true, "language": { "url": "../media/language/dataTables.ptbr.txt" }, "sPaginationType":"full_numbers",

        "columnDefs": [                
            { "type": 'date-uk', "targets": 0 }        
            ]               
    });
})

Sorry for errors in english.. :D

Thanks!!


Viewing all articles
Browse latest Browse all 35288

Trending Articles