rb vishnu rb vishnu - 5 months ago 10x
Javascript Question

Date format in Bootstrap datetimepicker

I am just working on Bootstrap datetimepicker, and I am done that. A small problem is there, I tried to change the selected date format and failed. How can I fix this?

This is my code:

dateFormat: "dd-mm-yy",
timeFormat: "HH:mm:ss"

This is my jsfiddle link http://jsfiddle.net/vishnur15/8tsCt/2/


check this jsfiddle


format must be

    format: 'DD-MM-YYYY HH:mm:ss'