{"action":"closed","issue":{"url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/639","labels_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/639/comments","events_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/639/events","html_url":"https://github.com/dangrossman/bootstrap-daterangepicker/issues/639","id":72109582,"number":639,"title":"DateLimit exceeds endDate ","user":{"login":"tusharughade","id":9526673,"avatar_url":"https://avatars.githubusercontent.com/u/9526673?v=3","gravatar_id":"","url":"https://api.github.com/users/tusharughade","html_url":"https://github.com/tusharughade","followers_url":"https://api.github.com/users/tusharughade/followers","following_url":"https://api.github.com/users/tusharughade/following{/other_user}","gists_url":"https://api.github.com/users/tusharughade/gists{/gist_id}","starred_url":"https://api.github.com/users/tusharughade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tusharughade/subscriptions","organizations_url":"https://api.github.com/users/tusharughade/orgs","repos_url":"https://api.github.com/users/tusharughade/repos","events_url":"https://api.github.com/users/tusharughade/events{/privacy}","received_events_url":"https://api.github.com/users/tusharughade/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-30T09:25:33Z","updated_at":"2015-07-16T01:42:40Z","closed_at":"2015-07-16T01:42:40Z","body":"Hello,\r\nI need your help in fixing one issue which I am facing in the Date range picker.\r\n\r\nI have endDate: moment(), and dateLimit: {days: 90},\r\nDate Range picker works absolutely fine.\r\nNow I don't want user to select future date's so I set  \"endDate\" as today's date.\r\nBut as the dateLimit is 90 days it picks further date if I select toady's date or previous dates.\r\n\r\n1. Go to date picker , select From date = 1 Dec 2014\r\n2. Then again select From date = 28 April 2015 (Today's date) and click on apply button.\r\n\r\nExpected behavior : Date should not be greater than Today's date\r\n\r\nUnexpected behavior : Date should be seen greater than Today's date\r\n*\r\n---------------------------------------------------------------------------------------------------------------------------\r\nCode:\r\n              format: 'YYYY-MM-DD',\r\n              separator: ' to ',\r\n              startDate: moment().subtract(6, 'days'),\r\n              endDate: moment(),\r\n              showWeekNumbers: false,\r\n              maxDate: moment(),\r\n              dateLimit : {days: 90},\r\n*\r\n-----------------------------------------------------------------------------------------------------------------------------\r\n\r\n![datelimit](https://cloud.githubusercontent.com/assets/9526673/7410004/a825e95c-ef48-11e4-8bbc-e9c427ea2d58.jpg)"}}