We're storing birth dates in the format of yyyy-mm-dd
. When this format is provided to the angular-bootstrap date picker, it selects the incorrect date in the popup. Converting it to a date object causes both the display and selection to be incorrect. See my plnk for examples (ignore validation stuff, that's a whole other issue).
// Displays '2015-09-25', but 24th is selected
var date = '2015-09-25';
// Displays '2015-09-24', selects 24th
var date = new Date("2015-09-25");