{"action":"created","issue":{"url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1679","labels_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1679/labels{/name}","comments_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1679/comments","events_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1679/events","html_url":"https://github.com/eternicode/bootstrap-datepicker/issues/1679","id":117109785,"number":1679,"title":"`changeDate` event does not take `format.toValue` into account","user":{"login":"BenjaminVanRyseghem","id":407891,"avatar_url":"https://avatars.githubusercontent.com/u/407891?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminVanRyseghem","html_url":"https://github.com/BenjaminVanRyseghem","followers_url":"https://api.github.com/users/BenjaminVanRyseghem/followers","following_url":"https://api.github.com/users/BenjaminVanRyseghem/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminVanRyseghem/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminVanRyseghem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminVanRyseghem/subscriptions","organizations_url":"https://api.github.com/users/BenjaminVanRyseghem/orgs","repos_url":"https://api.github.com/users/BenjaminVanRyseghem/repos","events_url":"https://api.github.com/users/BenjaminVanRyseghem/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminVanRyseghem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T12:04:15Z","updated_at":"2015-11-16T20:15:04Z","closed_at":null,"body":"We can read [here](https://github.com/eternicode/bootstrap-datepicker/blob/4ff617c0f283c9f6e7caf74bab0afd31170ca412/js/bootstrap-datepicker.js#L441) that a default \"toValue\" function is used, regardless of what the user may have specified\r\n\r\nI can come up with a PR if you find it valid"},"comment":{"url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/comments/157156828","html_url":"https://github.com/eternicode/bootstrap-datepicker/issues/1679#issuecomment-157156828","issue_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1679","id":157156828,"user":{"login":"BenjaminVanRyseghem","id":407891,"avatar_url":"https://avatars.githubusercontent.com/u/407891?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminVanRyseghem","html_url":"https://github.com/BenjaminVanRyseghem","followers_url":"https://api.github.com/users/BenjaminVanRyseghem/followers","following_url":"https://api.github.com/users/BenjaminVanRyseghem/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminVanRyseghem/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminVanRyseghem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminVanRyseghem/subscriptions","organizations_url":"https://api.github.com/users/BenjaminVanRyseghem/orgs","repos_url":"https://api.github.com/users/BenjaminVanRyseghem/repos","events_url":"https://api.github.com/users/BenjaminVanRyseghem/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminVanRyseghem/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T20:15:04Z","updated_at":"2015-11-16T20:15:04Z","body":"I'll do that tomorrow.\r\n\r\nThe use case is: in the month view, I want to get back the end of the month instead of the beginning.\r\nSo I hooked up into format.toValue, and it works as expected.\r\n\r\nBut then as the event `changeDate` in not going through `toValue`, it failed"}}