Unable to set date on simplest example #2836
-
Hi Yes I have searched and tried examples from online but still cant get it working Thoughts on how to get working ? //var dateValue = '19/7/2023 06:19:00' ; const picker = new tempusDominus.TempusDominus('datepicker1', { |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The error is correct. Your format string does not match the input you gave. The |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Unfortunately the suggested answer doesnt work in my code, see my examples to get it working correctly |
Beta Was this translation helpful? Give feedback.
The error is correct. Your format string does not match the input you gave. The
T
in the string is AM/PM. If you need that to represent the letter "T" then you need to escape it like this[T]