Hi,
I’m trying to change the displayed date format in my app by using “:formatted as dd/mm/yy”.
For some reason, however, I get an error back (check attached screenshots).
What am I doing wrong?
Thank you
Hi,
I’m trying to change the displayed date format in my app by using “:formatted as dd/mm/yy”.
For some reason, however, I get an error back (check attached screenshots).
What am I doing wrong?
Thank you
Hi!
Just try to change content type of this input to text. But u should use date/time picker to take data from user , otherwise it can give you mismatch
Hi!
Thank you for your time!
Not sure if I understood. The input whose date format I’m trying to change is a date/time picker already.
You’re using a date/time picker input, which obviously outputs a value which is a ‘date’.
If you want to set an initial content, then that must also be a ‘date’.
In your screenshot, you’re applying formatting to the ‘date’, which turns the value into a ‘text’, which is the wrong type of data for a date/time picker.
So just remove the formatting on the date in the initial content for it to work correctly.
Hi, thank you for your help!
Ok, but removing the formatting, the initial content is then mm/dd/yy (see picture). I’m trying to have the inital content be dd/mm/yy.
Ok, but removing the formatting, the initial content is then mm/dd/yy (see picture). I’m trying to have the inital content be dd/mm/yy.
No, the initial content is a ‘date’ - it’s not mm/dd/yy…
It’s displayed visually in the element as “mm/dd/yy” but the value remains a ‘date’
You can set the display format of the date/time picker’s ‘date’ value using the “Date Format” option in the element properties editor (you can format it any way you like).
My date/time picker doesn’t show that Date format option. Not even if I change input type to Date only (as in your case), instead of Date & Time.
I’m guessing you’ve got a style set on the element then…
Remove the style and you’ll see the additional options (or you can edit the style itself)
Oh that was it!
Thank you Adam.
This topic was automatically closed after 70 days. New replies are no longer allowed.