Issue when using angular locales in Wijmo grid

Posted by: monicaladda on 29 July 2018, 2:39 pm EST

    • Post Options:
    • Link

    Posted 29 July 2018, 2:39 pm EST

    Hi Team,

    We are using wijmo grid to display dates but we are formatting the dates based on our angular locales.

    we have an issue for few locales where angular format is dd/mm/y-which is giving correct output(Ex:27/07/2018) but wijmo grid is displaying as 27/07/8.

    do we have anything to do with wijmo?

    Thanks in advance,

    Monica

  • Posted 29 July 2018, 8:14 pm EST

    Hi…

    It would be appreciable if any one could reply as i need it on urgent basis

  • Posted 29 July 2018, 11:01 pm EST

    Hi,

    Wijmo controls formats date/time with .NET style format string where angular locale uses a different format.

    To format date as 27/07/2018, you need to set format as ‘dd/mm/yyyy’.

    You can compare the difference between the two format styles from the following official docs:-

    • .NET custom date time format strings:- https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

    • Angular custom date time format strings:- https://angular.io/api/common/DatePipe#custom-format-options

    ~Manish

Need extra support?

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

Learn More

Forum Channels