mamar
12 years agoContributor
How to convert a string to date
Hi,
I have datestring like this "05/08/2013" which is coming from backend. From my soapui response i will get the date value as "2013-05-08T00:00:00-04:00". I need to compare these two vales and make the test case as pass. i know how to parse the dates, but i don't know how to convert the template and compare in groovy. Could anyone can help me on how to validate these two values as dates?
I have datestring like this "05/08/2013" which is coming from backend. From my soapui response i will get the date value as "2013-05-08T00:00:00-04:00". I need to compare these two vales and make the test case as pass. i know how to parse the dates, but i don't know how to convert the template and compare in groovy. Could anyone can help me on how to validate these two values as dates?