Strange date format issue
No idea if this is a bug in Quasar but I am having a problem with the date reformat.
I have this from the input mask: DD-MM-YYYY HHss which gives me:
This is how I need to show the date in the input fields to my customers.
But, for my calculations to work, I need to reformat the date to:
date.formatDate(initialDate, 'YYYY-MM-DD HH:mm:ss');
It looks like it works until you set the calendar to a day higher than 12, it gives “NaN”. Meaning that you think the middle number is MONTHS when in fact it is in days. The above conversion does not work at all.
Any idea how to reconvert properly the date using Quasar from DD-MM-YYYY HHss to YYYY-MM-DD HHss
s.molinari last edited by
If this is still an issue, can you try to replicate in a codepen?