{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5223","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5223/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5223/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5223/events","html_url":"https://github.com/angular-ui/bootstrap/issues/5223","id":126231024,"number":5223,"title":"dateMin does not work on DatePicker if the value is not a Date object and is a string","user":{"login":"gmodrogan","id":4115719,"avatar_url":"https://avatars.githubusercontent.com/u/4115719?v=3","gravatar_id":"","url":"https://api.github.com/users/gmodrogan","html_url":"https://github.com/gmodrogan","followers_url":"https://api.github.com/users/gmodrogan/followers","following_url":"https://api.github.com/users/gmodrogan/following{/other_user}","gists_url":"https://api.github.com/users/gmodrogan/gists{/gist_id}","starred_url":"https://api.github.com/users/gmodrogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmodrogan/subscriptions","organizations_url":"https://api.github.com/users/gmodrogan/orgs","repos_url":"https://api.github.com/users/gmodrogan/repos","events_url":"https://api.github.com/users/gmodrogan/events{/privacy}","received_events_url":"https://api.github.com/users/gmodrogan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-12T17:33:26Z","updated_at":"2016-01-12T17:33:26Z","closed_at":null,"body":"Hello,\r\n\r\nPlease have a look at the following plnkr: http://plnkr.co/edit/weqkakdClFB3ZBI7SKtr?p=preview\r\n\r\nFrom the controller I set \r\n$scope.minDate = new Date(\"2016-01-15T17:17:07.670Z\");\r\n$scope.minDateString = \"2016-01-15T17:17:07.670Z\"; -> this is how the json is parsed from any API\r\n\r\nFirst datePicker has dateMin as value for min-date and second datePicker has minDateString.\r\n\r\n[BUG]\r\n- second date picker doesn't have disabled the dates before 15th Jan 2016.\r\n\r\nAny idea? From my API I get the data as in the second string. I don't want to loop over my API entities and create Date objects after the call.....\r\n\r\nThanks,\r\nGeorge\r\n"}}