FloV Well-known member Oct 21, 2019 #1 Hi everybody, how do i change the output of a datepicker input field. Since i only have a date, it's not possible to work with xf:date. Is there another way to change the output to dd.mm.YY? Thanks in advance Flo
Hi everybody, how do i change the output of a datepicker input field. Since i only have a date, it's not possible to work with xf:date. Is there another way to change the output to dd.mm.YY? Thanks in advance Flo
021 Well-known member Oct 21, 2019 #2 .it is not possible. Dateformat is hardcoded in form.js. To change the format, you need to write your handler for datepicker. Upvote 0 Downvote
.it is not possible. Dateformat is hardcoded in form.js. To change the format, you need to write your handler for datepicker.
FloV Well-known member Oct 21, 2019 #3 Really? I don't care about the input field or how it's saved. It's just the plain output i care about. Upvote 0 Downvote
Really? I don't care about the input field or how it's saved. It's just the plain output i care about.
021 Well-known member Oct 21, 2019 #4 Crazy-Achmet said: Really? I don't care about the input field or how it's saved. It's just the plain output i care about. Click to expand... .you can check it yourself)) js/xf/core/form.js (1319-1332) Upvote 0 Downvote
Crazy-Achmet said: Really? I don't care about the input field or how it's saved. It's just the plain output i care about. Click to expand... .you can check it yourself)) js/xf/core/form.js (1319-1332)
FloV Well-known member Oct 21, 2019 #5 As i said, i've ment the output not the input field itself. Found it out be myself, it's : {{ date(date_from_format('Y-m-d', $date)) }} Upvote 1 Downvote
As i said, i've ment the output not the input field itself. Found it out be myself, it's : {{ date(date_from_format('Y-m-d', $date)) }}
021 Well-known member Oct 21, 2019 #6 Crazy-Achmet said: As i said, i've ment the output not the input field itself. Click to expand... .ah, I don’t quite understand you. You can use {{ date($date, 'd.m.Y') }} Upvote 1 Downvote
Crazy-Achmet said: As i said, i've ment the output not the input field itself. Click to expand... .ah, I don’t quite understand you. You can use {{ date($date, 'd.m.Y') }}