'Flat picker date showing in unexpected format

Expected date format is "DD-MM-YYYY" but shown date format as "YYYY-MM-DD" in UI.

Click here to show UI image

  1. Before opening the date picker, date is shown in the expected format as "DD-MM-YYYY".
  2. When the date picker is opened, the date format is changed in to "YYYY-MM-DD" format.
  3. After closing date picker, it came back to the previous state (expected format as "DD-MM-YYYY").

How to show same date format in all the three states mentioned above ?



Solution 1:[1]

outputType is what you need, read the Wiki, if you want to change the date separator (-, /, .) then following this dateSeparator - Wiki

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1