Emad Mokhtar
Emad Mokhtar

Reputation: 3297

yadfc date range filter with a column with a date format ( momentjs 'lll' ) is not working

I have a DataTable with a column for date and time with momentjs format 'lll', the date range filter is not working.

{
   column_number : 4,
   filter_type: 'range_date',
   date_format: 'M d, yyyy',
}

Upvotes: 0

Views: 839

Answers (1)

Daniel
Daniel

Reputation: 37061

You can try using bootstrap date picker, with the following setup (requires https://github.com/Eonasdan/bootstrap-datetimepicker files)

{
   column_number : 4,
   filter_type: 'range_date',
   datepicker_type: 'bootstrap-datetimepicker',
   moment_date_format: 'M d, yyyy',
   datepicker_type: 'bootstrap-datetimepicker'
}

Upvotes: 0

Related Questions