{"action":"opened","issue":{"url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/190","labels_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/190/comments","events_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/190/events","html_url":"https://github.com/longbill/jquery-date-range-picker/issues/190","id":123525441,"number":190,"title":"startDate() does not work as expected with some format strings","user":{"login":"derwaldgeist","id":3984535,"avatar_url":"https://avatars.githubusercontent.com/u/3984535?v=3","gravatar_id":"","url":"https://api.github.com/users/derwaldgeist","html_url":"https://github.com/derwaldgeist","followers_url":"https://api.github.com/users/derwaldgeist/followers","following_url":"https://api.github.com/users/derwaldgeist/following{/other_user}","gists_url":"https://api.github.com/users/derwaldgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/derwaldgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derwaldgeist/subscriptions","organizations_url":"https://api.github.com/users/derwaldgeist/orgs","repos_url":"https://api.github.com/users/derwaldgeist/repos","events_url":"https://api.github.com/users/derwaldgeist/events{/privacy}","received_events_url":"https://api.github.com/users/derwaldgeist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T17:41:04Z","updated_at":"2015-12-22T17:41:04Z","closed_at":null,"body":"According to the docs, startDate() expects the same format as the format option.\r\n\r\nSo I tried this, according to the moment.js documentation:\r\n\r\n```js\r\nvar format = 'dddd, MMMM Do YYYY';\r\n$('#dateRangePickerInput').dateRangePicker({\r\n      format: format,\r\n      startDate: moment().format(format)\r\n});\r\n```\r\nThis resulted in a start date somewhere in 2023... \r\n\r\nIt worked with\r\n```\r\nYYYY-MM-DD\r\n```\r\nand surprisinlgy also with\r\n```\r\ndddd, MMMM Do\r\n```\r\nMaybe a bug in the moment.js parser?"}}