#106328Date for input type "datetime" cannot be fomatted
Description
I am using a datepicker in a custom content element which has the following TCA configuration.
'mydate' => [
'label' => 'mydate',
'config' => [
'type' => 'datetime',
'format' => 'date',
'required' => true,
],
],
The date picker displays dates in the form ‘mm-dd-yyyy’ which my German customers find irritating. they would prefer ‘dd.mm. yyyy’.
Is there a possibility do configure the date format? I did not find any documentation for this. And if not so: why?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Garvin Hicking commented and changed category status
NewClosed 03/07/25, 04:35 -
Michael Perlbach commented 03/07/25, 08:16
Thanks for your answer. I did already set $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘ddmmyy’] and it has no effect.
-
Michael Perlbach commented 03/07/25, 08:28
I deleted the cache several times and now it works.
I will switch to talk.typo3.org.
Hi Michael,
For questions like this, maybe you could use a support system like Slack, stackoverflow, facebook groups, t3academy, talk.typo3.org, I think that is better suited than the concrete issue tracker here.
Please take a look at https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/Typo3ConfVars/SYS.html#confval-globals-typo3-conf-vars-sys-ddmmyy – currently, FormEngine is meant to configure this globally for a unique editing experience.
You could build your own formengine element rendering in case you have specific needs at this time.
Hope that helps,
Garvin