Update datepicker.js

Now the model is a date object so when the inline datepicker is used, the date actually gets formatted. Saving millions of people tons of time and hassle with this fix.