Hi everybody,
We're using bootstrap datetimepicker in a directive. If we allow to pick time, we have the format set to HH:mm.
Apparently that format changes the way the dates are saved. Say, we set the date programmatically to 59:59.997 at the end of the date. However, it is being saved as
59:59:00.000
Is there a way to have shorter format but allow to save datetime with seconds (and milliseconds) using that control?
Thanks in advance.
UPDATE. I made several fixes in that directive and now it saves datetime correctly.
If it's not broken, fix it until it is.
My Blog