Skip to content Skip to sidebar Skip to footer

Bootstrap 3 Datepicker (eonasdan Version) Provides A Datetime Object With Getdate(). Not A String

I am using the following bootstrap 3 datepicker. http://eonasdan.github.io/bootstrap-datetimepicker/ it works fine but there is an issue . during the change event the output thro

Solution 1:

If I interpret the installation instruction correctly, Eonasdan already has moment.js as a dependency. This answer from a related question provides some sample code on using moment.js to format a date in JavaScript.

If for some reason moment.js is not available, you can fall back to the native JavaScript functions. See this answer from the same question as I previously referred to.

Post a Comment for "Bootstrap 3 Datepicker (eonasdan Version) Provides A Datetime Object With Getdate(). Not A String"