简体   繁体   中英

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',
}

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'
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM