{"action":"created","issue":{"url":"https://api.github.com/repos/nkalinov/ng2-datetime/issues/19","repository_url":"https://api.github.com/repos/nkalinov/ng2-datetime","labels_url":"https://api.github.com/repos/nkalinov/ng2-datetime/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/nkalinov/ng2-datetime/issues/19/comments","events_url":"https://api.github.com/repos/nkalinov/ng2-datetime/issues/19/events","html_url":"https://github.com/nkalinov/ng2-datetime/issues/19","id":163507920,"number":19,"title":"Initializing datepicker with custom format and startDate results in empty datetime-box ","user":{"login":"ciesielskico","id":17651898,"avatar_url":"https://avatars.githubusercontent.com/u/17651898?v=3","gravatar_id":"","url":"https://api.github.com/users/ciesielskico","html_url":"https://github.com/ciesielskico","followers_url":"https://api.github.com/users/ciesielskico/followers","following_url":"https://api.github.com/users/ciesielskico/following{/other_user}","gists_url":"https://api.github.com/users/ciesielskico/gists{/gist_id}","starred_url":"https://api.github.com/users/ciesielskico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciesielskico/subscriptions","organizations_url":"https://api.github.com/users/ciesielskico/orgs","repos_url":"https://api.github.com/users/ciesielskico/repos","events_url":"https://api.github.com/users/ciesielskico/events{/privacy}","received_events_url":"https://api.github.com/users/ciesielskico/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-02T08:08:16Z","updated_at":"2016-07-15T14:12:20Z","closed_at":"2016-07-15T14:07:12Z","body":"Hi, \r\n\r\nI am setting the following datepickerOptions in ngOnInit:\r\n\r\n.ts\r\n```\r\nthis.datepickerOptions = {\r\n      startDate: new Date(),\r\n      autoclose: true,\r\n      todayBtn: 'linked',\r\n      todayHighlight: true,\r\n      language: 'pl',\r\n      icon: 'fa fa-calendar',\r\n      assumeNearbyYear: true,\r\n      format: 'dd.mm.yyyy'\r\n    };\r\n\r\nthis.transactionDate = new Date()\r\n```\r\n\r\n.html\r\n`<datetime #datepicker [(ngModel)]=\"transactionDate\" [datepicker]=\"datepickerOptions\" [timepicker]=\"timepickerOptions\"></datetime>`\r\n\r\n\r\nUnfortunately the datetime input is empty on initialization. \r\nRemoving the startDate option makes the new Date() visible again. \r\n\r\nI need the datetime picker to only pick future dates. Any advice?\r\n"},"comment":{"url":"https://api.github.com/repos/nkalinov/ng2-datetime/issues/comments/232961313","html_url":"https://github.com/nkalinov/ng2-datetime/issues/19#issuecomment-232961313","issue_url":"https://api.github.com/repos/nkalinov/ng2-datetime/issues/19","id":232961313,"user":{"login":"nkalinov","id":2777825,"avatar_url":"https://avatars.githubusercontent.com/u/2777825?v=3","gravatar_id":"","url":"https://api.github.com/users/nkalinov","html_url":"https://github.com/nkalinov","followers_url":"https://api.github.com/users/nkalinov/followers","following_url":"https://api.github.com/users/nkalinov/following{/other_user}","gists_url":"https://api.github.com/users/nkalinov/gists{/gist_id}","starred_url":"https://api.github.com/users/nkalinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkalinov/subscriptions","organizations_url":"https://api.github.com/users/nkalinov/orgs","repos_url":"https://api.github.com/users/nkalinov/repos","events_url":"https://api.github.com/users/nkalinov/events{/privacy}","received_events_url":"https://api.github.com/users/nkalinov/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T14:12:20Z","updated_at":"2016-07-15T14:12:20Z","body":"Thanks @ciesielskico.\r\nFixed in 1.1.3"}}
{"actor":{"display_login":"nkalinov"}}