Skip to content

unable to filter dates #187

@amitavadeb

Description

@amitavadeb

hi,

i am using vue-table and i am trying to filter a date column which i am unable to do.

//options
options: { toMomentFormat: 'YYYY-MM-DD' }

//templates
templates: { jobdate: function (row) { moment.locale("en-gb") var new_date = new Date(row.job_date); return moment(new_date.getTime()).format("L") } }

the problem is: i am unable to filter the dates. my server is sending dates as '2018-07-05 11:56:54 AM' format. the dates on my date column is viewed as '2018-07-05 11:56:54 AM' format.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions