Date filter with google sheets only acepts text data
Date filter with google sheets only acepts text data
Hi, this is my code
https://live.datatables.net/rezopowi/1/
date filter only works when i have text format data, data its in a google sheets spreadsheet, obviously when data is captured it has date format, so in every new register dataTable doesnt show records, if i go to the spreadsheet and format date to text datatable shows all records. if i delete date filter datatable works again but with date formats. i cant find why it needs text format date. Thanks in advance.
This question has an accepted answers - jump to answer
Answers
this its my code
function showData(dataArray){
var table = $('#data-table').DataTable({
data: dataArray,
}
It would help if the test case had a representation of the date data format you are having difficulties with. The test case has some errors. Maybe reduce the test case down to the code necessary to show the issue.
Start by removing the HTML table and populating the
dataArray
variable sodata: dataArray,
has data to populate the table.Kevin
Please check as solved, i dont know if my spreadsheet was buuged but i change conection to another spreadsheet and now everything works, weird, becose it was almost empty with the same format in every column.
Thanks for the update.
Allan