Date and time input issue
Date and time input issue
Vyacheslav
Posts: 70Questions: 27Answers: 0
in Editor
See https://datatbl.herokuapp.com/dt
I don't understand what I do wrong ... datetime control doesn't recognize my format and shows current datetime instead of field's value(
I use the following settings:
type: 'datetime',
def: function () { return new Date(); },
format: 'DD-MM-YYYY hh:mm'
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
If you have a look at the debug console in your browser it states:
You just need to load Moment.js and it should start working.
Allan
Oops! I forgot to include moment.js)
Most rows are recognized as expected, but there is some exclusions, for example row id = 2, 7 or 8
BTW: If you press Esc when the editing window is open, the editing window will close itself and the datetime picker remains open.
I think you want:
Thanks for noting the esc error. I'll have that fixed in 1.5.4.
Allan
Thank you Allan, it worked!