I currently try to parse datetime in tabulator js library. My datetime string is "2021-09-11T00:00:00.000Z".
On the last release, they change the datetime library to luxon. I didn't success to find the good format for that kind of date. In the documentation, it seems that they kept the last datetime library moment.js. I read the luxon documentation but i didn't succeed.
I tried :
{title:"Début Campagne", field:"start_date" ,formatter:"datetime", formatterParams:{ inputFormat:"yyyy-MM-ddTHH:mm:ss:SSSZ", outputFormat:"dd/MM/yyyy"}}
The way tabulator use luxon, i can't use the function Datetime.FromIso than can parse ISO 8601 so i have to found the correct format.
Thank you for your help
As of Tabulator v5.1 there is now built in iso support for formatters
{title:"Example", field:"example", formatter:"datetime", formatterParams:{
inputFormat:"iso",
}}
And sorters:
{title:"Example", field:"example", sorter:"datetime", sorterParams:{
format:"iso",
}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With