{"action":"opened","issue":{"url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/242","labels_url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/242/comments","events_url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/242/events","html_url":"https://github.com/Hacker0x01/react-datepicker/issues/242","id":119655074,"number":242,"title":"How to retrieve the name of the Datepicker?","user":{"login":"guocheng","id":4845980,"avatar_url":"https://avatars.githubusercontent.com/u/4845980?v=3","gravatar_id":"","url":"https://api.github.com/users/guocheng","html_url":"https://github.com/guocheng","followers_url":"https://api.github.com/users/guocheng/followers","following_url":"https://api.github.com/users/guocheng/following{/other_user}","gists_url":"https://api.github.com/users/guocheng/gists{/gist_id}","starred_url":"https://api.github.com/users/guocheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guocheng/subscriptions","organizations_url":"https://api.github.com/users/guocheng/orgs","repos_url":"https://api.github.com/users/guocheng/repos","events_url":"https://api.github.com/users/guocheng/events{/privacy}","received_events_url":"https://api.github.com/users/guocheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-01T06:51:26Z","updated_at":"2015-12-01T06:51:26Z","closed_at":null,"body":"I have two data pickers in my app. One for start date and one for end date. I wrote like this:\r\n\r\n```jsx\r\n<DatePicker name=\"startDate\" onChange={this.handleDateChange}/>\r\n\r\n<DatePicker name=\"endDate\" onChange={this.handleDateChange}/>\r\n```\r\n\r\nWhat I noticed in the onChange and the onBlur callback is that a **Moment** object is returned instead of an **event object**.  So how am I suppose to do something like this:\r\n\r\n```javascript\r\nhandleChange = (e) => {\r\n    if (e.target.name === 'startDate') {\r\n        ...blah...\r\n    }\r\n}\r\n```\r\n\r\nThanks."}}