Flexgrid Date Filter formatting

Posted by: alvin.shih on 8 August 2018, 9:15 am EST

    • Post Options:
    • Link

    Posted 8 August 2018, 9:15 am EST - Updated 3 October 2022, 11:24 am EST

    Hi,

    We’re using the flexgrid filter for date, it has a nice date control in it but as soon you select a date, the date format is shown as “mm/dd/yyyy”

    Is there any way to change this formatting?

  • Posted 8 August 2018, 8:21 pm EST

    Hi,

    The filter copies the format from the column it is applied on, so if you would like to change the format for the filter then changing the format of the column would do the trick.

    Please refer to the following code snippet:-

    let columnWithDateFilterIndex;
    grid.columns[columnWithDateFilterIndex].format="MM/yyyy";
    

    You may also refer to the following sample:-

    https://stackblitz.com/edit/js-fm1trn?file=index.js

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels