Columns search date
Columns search date
aerojun
Posts: 1Questions: 1Answers: 0
I have a column where the rows can have 2 possible values, a date ( Martes, 26 De Abril De 2016 06:13:34 ) or a normal string ( Not Yet ).
I'm trying to filter using the search function with a Regex function but it does not seem to work.
var table = $('#tablaActas').DataTable({
responsive: true,
data: {!! $vars !!},
"columns": [
{ "data": "Column" },
],
"iDisplayLength": 25,
"language": {
"url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Spanish.json"
},
"initComplete": function(settings, json) {
$("#loadingmessage").hide();
}
});
table.columns( 0 ).search( /[\wáé]{5,10}, [\d]{1,2} [\w]{2} [\w]{4,10} [\w]{2} [\d]{4} [\d]{2}:[\d]{2}:[\d]{2}/, true, false ).draw();
This discussion has been closed.