SyntaxFix
Write A Post
Hire A Developer
Questions
It seems the doc evolved.
One should now use : $("#datetimepicker1").data("DateTimePicker").date().
$("#datetimepicker1").data("DateTimePicker").date()
NB : Doing so return a Moment object, not a Date object