Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: date is undefined in bootstrap-datepicker

I am using bootstrap datepicker from http://www.eyecon.ro/bootstrap-datepicker/

But the firebug shows date is undefined in the bootstrap-datepicker.js file in the following line.

var parts = date.split(format.separator)

javascript file and css are working properly

<script type="text/javascript" src="../bootstrap/js/bootstrap-datepicker.js"></script>

<link rel="stylesheet" href="../bootstrap/css/datepicker.css" type="text/css"/>

And Initialized the date picker using

$('.datepicker').datepicker({ format: "yyyy-mm-dd" });
like image 347
Manu Avatar asked Dec 05 '25 04:12

Manu


1 Answers

The Problem Was Due to older bootstrap-datepicker.js . After Replacing bootstrap-datepicker.js with new its working properlly.

like image 153
Manu Avatar answered Dec 07 '25 18:12

Manu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!