{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3104","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3104/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3104/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3104/events","html_url":"https://github.com/angular-ui/bootstrap/issues/3104","id":52007059,"number":3104,"title":"non-dates are being parsed as valid dates","user":{"login":"bolemeus","id":1689125,"avatar_url":"https://avatars.githubusercontent.com/u/1689125?v=3","gravatar_id":"","url":"https://api.github.com/users/bolemeus","html_url":"https://github.com/bolemeus","followers_url":"https://api.github.com/users/bolemeus/followers","following_url":"https://api.github.com/users/bolemeus/following{/other_user}","gists_url":"https://api.github.com/users/bolemeus/gists{/gist_id}","starred_url":"https://api.github.com/users/bolemeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolemeus/subscriptions","organizations_url":"https://api.github.com/users/bolemeus/orgs","repos_url":"https://api.github.com/users/bolemeus/repos","events_url":"https://api.github.com/users/bolemeus/events{/privacy}","received_events_url":"https://api.github.com/users/bolemeus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-15T16:29:12Z","updated_at":"2015-02-06T15:22:24Z","closed_at":null,"body":"I have a datepicker on my site, using the following format 'dd-MM-yyyy'.\r\nBecause it is possible to manually insert a date I want the datepicker to do some validation on it.\r\n\r\nHowever, when I enter the first digit of the date, for example a 1, the datepicker already assumes it's a valid date. It parses it into the date 1 January 2001. The date picker also fills the model with this incorrect date.\r\n\r\nBecause I use that date in a function that is called with a ng-change function this causes unwanted behaviour.\r\n\r\nIs there something I'm missing, or is this a bug?\r\n\r\nPS: this bug also happens in the demo.\r\nhttp://angular-ui.github.io/bootstrap/#/datepicker#datepicker"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/73252576","html_url":"https://github.com/angular-ui/bootstrap/issues/3104#issuecomment-73252576","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3104","id":73252576,"user":{"login":"hewstone","id":4896082,"avatar_url":"https://avatars.githubusercontent.com/u/4896082?v=3","gravatar_id":"","url":"https://api.github.com/users/hewstone","html_url":"https://github.com/hewstone","followers_url":"https://api.github.com/users/hewstone/followers","following_url":"https://api.github.com/users/hewstone/following{/other_user}","gists_url":"https://api.github.com/users/hewstone/gists{/gist_id}","starred_url":"https://api.github.com/users/hewstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hewstone/subscriptions","organizations_url":"https://api.github.com/users/hewstone/orgs","repos_url":"https://api.github.com/users/hewstone/repos","events_url":"https://api.github.com/users/hewstone/events{/privacy}","received_events_url":"https://api.github.com/users/hewstone/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T15:22:24Z","updated_at":"2015-02-06T15:22:24Z","body":"+1.  I am having the same problem. Adding a $formatter does not help because the $modelValue and the $viewValue are the same"}}