Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to assert date having ISO 8601 format #227

Open
shashikumarraja opened this issue Nov 9, 2016 · 3 comments
Open

How to assert date having ISO 8601 format #227

shashikumarraja opened this issue Nov 9, 2016 · 3 comments

Comments

@shashikumarraja
Copy link

I need to assert the date field body of my api response which is in ISO 8601 format i.e 2016-11-09T16:04:27.964Z
Is there a way I can do so?

@dsuare1
Copy link

dsuare1 commented Apr 19, 2017

+1 - Any resolution on this?

@shashikumarraja
Copy link
Author

@dsuare1 I am unable to find any way to do so till now.

@dsuare1
Copy link

dsuare1 commented Apr 20, 2017

@shashikumarraja Neither could I when trying yesterday; I tried to use the Assertion#Date type assertion, but never got the syntax correct. I ended up taking the mock, which was in GMT format, and converting it to UTC and comparing that with my expected output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants