Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
Describe the bug
In the latest build, when you change the output date format from the default YYYY-mm-dd to anything else, the result is not correctly formatted.
To Reproduce
Create a input with data-role="calendarpicker", set data-format="%d %b %Y" or data-format="%d %B %Y" . Now when you pick a date from the calendar, the result is %3 %b %undefined or %2 %B %undefined. The same problem can be seen in the example here: https://metroui.org.ua/calendarpicker.html
Expected behavior
The date should be formatted correctly using the data-format format.
Describe the bug In the latest build, when you change the output date format from the default YYYY-mm-dd to anything else, the result is not correctly formatted.
To Reproduce Create a input with data-role="calendarpicker", set data-format="%d %b %Y" or data-format="%d %B %Y" . Now when you pick a date from the calendar, the result is %3 %b %undefined or %2 %B %undefined. The same problem can be seen in the example here: https://metroui.org.ua/calendarpicker.html
Expected behavior The date should be formatted correctly using the data-format format.
Screenshots
![image](https://user-images.githubusercontent.com/97060826/198578497-c8996fdc-9ce1-4432-8a00-37d54aa19d6b.png)