Wijmo Flex Grid Date Format

Posted by: reeshabh.choudhary on 3 July 2019, 7:21 am EST

    • Post Options:
    • Link

    Posted 3 July 2019, 7:21 am EST - Updated 3 October 2022, 7:55 pm EST

    Hi team, I am giving my grid options to Wijmo in following way:

    { binding: ‘accountCreated’, header: ‘Account Created’, type: ‘Date’, format: ‘dd/MM/yyyy’, width: 120 },

    But, still date in the grid displays in following format:

  • Posted 3 July 2019, 7:40 am EST

    I want my date to be formated in MM/DD/YYYY format and sorting to be applied on it. Kindly provide with an example.

  • Posted 4 July 2019, 4:10 am EST

    Date not showing in the correct format

    We are sorry but we were not able to replicate the issue at our end. Please refer to the sample below that we used to replicate the issue. Could you please tell us whether we are missing something in order to replicate the issue?

    Date format

    You may use the format property of Column to show the date in the desired format which is demonstrated in the sample.

    Sorting

    You can easily sort the date by clicking on the header of Date column or you can also sort the date using the sortDescriptions property of CollectionView.

    grid.collectionView.sortDescriptions.push(new wjcCore.SortDescription('date', true));
    

    Please refer to the sample below:

    https://stackblitz.com/edit/js-gjeqxg

Need extra support?

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

Learn More

Forum Channels