{"action":"created","issue":{"url":"https://api.github.com/repos/gaslight/chai-datetime/issues/19","labels_url":"https://api.github.com/repos/gaslight/chai-datetime/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/gaslight/chai-datetime/issues/19/comments","events_url":"https://api.github.com/repos/gaslight/chai-datetime/issues/19/events","html_url":"https://github.com/gaslight/chai-datetime/issues/19","id":64490181,"number":19,"title":"Suggestion: Allow text dates to be auto-converted","user":{"login":"matcarey","id":1216162,"avatar_url":"https://avatars.githubusercontent.com/u/1216162?v=3","gravatar_id":"","url":"https://api.github.com/users/matcarey","html_url":"https://github.com/matcarey","followers_url":"https://api.github.com/users/matcarey/followers","following_url":"https://api.github.com/users/matcarey/following{/other_user}","gists_url":"https://api.github.com/users/matcarey/gists{/gist_id}","starred_url":"https://api.github.com/users/matcarey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matcarey/subscriptions","organizations_url":"https://api.github.com/users/matcarey/orgs","repos_url":"https://api.github.com/users/matcarey/repos","events_url":"https://api.github.com/users/matcarey/events{/privacy}","received_events_url":"https://api.github.com/users/matcarey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-26T10:25:14Z","updated_at":"2015-03-27T23:46:27Z","closed_at":null,"body":"I'm working with a hotel API where I want to TDD arrival & departure dates.  I'd like to simplify:\r\n\r\n expect(jsonResponse.arrivalDate).to.equalDate(new Date('2017-01-01'));\r\n\r\nTo:\r\n\r\n expect(jsonResponse.arrivalDate).to.equalDate('2017-01-01');\r\n\r\nEssentially if chai-datetime is asked to match a string to a date it would wrap it in `new Date(str)` to allow a short-hand.\r\n\r\nI'm happy to raise a PR but wanted to check if it's a desirable feature or if I'm the only lazy one out there."},"comment":{"url":"https://api.github.com/repos/gaslight/chai-datetime/issues/comments/87124589","html_url":"https://github.com/gaslight/chai-datetime/issues/19#issuecomment-87124589","issue_url":"https://api.github.com/repos/gaslight/chai-datetime/issues/19","id":87124589,"user":{"login":"kayhadrin","id":182644,"avatar_url":"https://avatars.githubusercontent.com/u/182644?v=3","gravatar_id":"","url":"https://api.github.com/users/kayhadrin","html_url":"https://github.com/kayhadrin","followers_url":"https://api.github.com/users/kayhadrin/followers","following_url":"https://api.github.com/users/kayhadrin/following{/other_user}","gists_url":"https://api.github.com/users/kayhadrin/gists{/gist_id}","starred_url":"https://api.github.com/users/kayhadrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayhadrin/subscriptions","organizations_url":"https://api.github.com/users/kayhadrin/orgs","repos_url":"https://api.github.com/users/kayhadrin/repos","events_url":"https://api.github.com/users/kayhadrin/events{/privacy}","received_events_url":"https://api.github.com/users/kayhadrin/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T23:46:27Z","updated_at":"2015-03-27T23:46:27Z","body":"No issue with that @matcarey. I can see that date format parsing can become a very hairy task - hence the existence of momentjs and the likes."}}