fix(datepicker): date formatting when using angular 1.3 fixes #2659