Issue :
The datepicker is working fine in all pages but when we add it inside a bootstrap modal (link below) it stop working.
Bootstrap Modal:
http://getbootstrap.com/2.3.2/javascript.html#modals
Same code is working in normal html files like below
http://jsfiddle.net/rahuladmin/6f4a6097/2/
Solution:
You need to call datepicker() in Modal itself like below:
Hope it helps