{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5159","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5159/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5159/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5159/events","html_url":"https://github.com/angular-ui/bootstrap/issues/5159","id":125395379,"number":5159,"title":"Issues with a text input and date","user":{"login":"sampie","id":619607,"avatar_url":"https://avatars.githubusercontent.com/u/619607?v=3","gravatar_id":"","url":"https://api.github.com/users/sampie","html_url":"https://github.com/sampie","followers_url":"https://api.github.com/users/sampie/followers","following_url":"https://api.github.com/users/sampie/following{/other_user}","gists_url":"https://api.github.com/users/sampie/gists{/gist_id}","starred_url":"https://api.github.com/users/sampie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampie/subscriptions","organizations_url":"https://api.github.com/users/sampie/orgs","repos_url":"https://api.github.com/users/sampie/repos","events_url":"https://api.github.com/users/sampie/events{/privacy}","received_events_url":"https://api.github.com/users/sampie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-07T13:37:16Z","updated_at":"2016-01-09T07:53:33Z","closed_at":"2016-01-07T14:18:23Z","body":"If the date format is specified as dd.mm.yy the datepicker does not recognize strings like \"1.1.2016\" (like it is typically typed), but user must type 01.01.2016. It also seems that if user types 1.1.2016 or something else that is considered invalid, the ng-model variable disappears from the containing object structure. Is it possible to configure datepicker in such a way that 1) input field ng-variable is maintained as a string 2) the variable is altered by the datepicker only when a date is selected from the popup?"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/170207882","html_url":"https://github.com/angular-ui/bootstrap/issues/5159#issuecomment-170207882","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5159","id":170207882,"user":{"login":"sampie","id":619607,"avatar_url":"https://avatars.githubusercontent.com/u/619607?v=3","gravatar_id":"","url":"https://api.github.com/users/sampie","html_url":"https://github.com/sampie","followers_url":"https://api.github.com/users/sampie/followers","following_url":"https://api.github.com/users/sampie/following{/other_user}","gists_url":"https://api.github.com/users/sampie/gists{/gist_id}","starred_url":"https://api.github.com/users/sampie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampie/subscriptions","organizations_url":"https://api.github.com/users/sampie/orgs","repos_url":"https://api.github.com/users/sampie/repos","events_url":"https://api.github.com/users/sampie/events{/privacy}","received_events_url":"https://api.github.com/users/sampie/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T07:53:33Z","updated_at":"2016-01-09T07:53:33Z","body":"I tested in plunker. I added {{dt}} to the code to see the ng-model content. Selected \"dd.MM.yy\" format from the selection box and wrote \"12.1.2016\" to the first popup. dt did not print at all. Only when I wrote \"12.10.2016\" the dt became available/visible. Did I use this in some wrong way?"}}