This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
bug(datepicker): doesn't apply the format when you type #1965
Closed
Description
Hey guys,
the code I'm using to reproduce this bug is the example one (http://angular-ui.github.io/bootstrap/#/datepicker).
- I did open it at Plunker and added this date format: 'dd-MM-yyyy'.
$scope.formats = ['dd-MM-yyyy', 'dd-MMMM-yyyy', 'yyyy/MM/dd', 'shortDate'];
- When I clicked at the input, the calendar poped and everything worked fine when I picked the date clicking.
- When I clicked at the input and edit the value typing it doesn't apply the format I chose previously and gave me the wrong date.
For example:
- Apply the format 'dd-MM-yyyy'.
- Select (clicking at the calendar widget) 21/03/2014. It will work fine.
- Click at the input again and now type 12/03/2014.
Instead of apply the format and return the 12nd Mar 2014 it returns 3rd Dec 2014.
Does somebody have any thoughts?
Thanks
Metadata
Metadata
Assignees
Labels
No labels