-
I have migrated my old bootstrap 3 pickers to the new v6.x picker, and noted there are many breaking changes. My date format is ISO8601, which is YYYY-MM-DDThh:mm:ssZ Noted in a RFC discussion (#2341) that the timezone was dropped, that is not big deal because for me everything is in UTC, so I can add the 'Z' at the end of the values produced by the picker, though is a little inconvenient, because for displaying I also need to remove the TZ. The other thing I can't do is add the time marker 'T', I have tried surrounding it by commas, escaping it by \ etc and it gets substituted by AM/PM in the picker value, which I don't need. In fact I need the 'T' in the middle, no AM/PM and hours be 24h. in tempus-dominus 6.x is that even supported? I have checked https://getdatepicker.com/6/plugins/customDateFormat.html I also saw TD dropped moment.js, so is it possible to have a display format and an internal representation format? like DD/MM/YYYY hh:mm:ss for displaying and ISO8601 for getting the value from the picker to submit it to the server? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That plugin was merged into the latest release and is no longer required. The table of tokens still applies. I will probably have to introduce a breaking change for the You can set the You could create your own parser and overwrite what I send to the input field. Sorry, the out-of-the-box experience misses the mark. |
Beta Was this translation helpful? Give feedback.
-
Hi. For now, with 6.4.3, you can write your format as |
Beta Was this translation helpful? Give feedback.
Hi. For now, with 6.4.3, you can write your format as
yyyy-MM-dd[T]hh:mm:ssZ
the[
and]
will escape theT