Forum Discussion
M_McDonald
16 years agoSuper Contributor
You could also use the Joda Time library (http://www.joda.org/ - download the joda-time-1.6.jar and put it in the soapui\bin\ext directory) and try to parse the string:
import org.joda.time.DateTime
import org.joda.time.format.ISODateTimeFormat
import org.joda.time.DateTime
import org.joda.time.format.ISODateTimeFormat
def dateString = "1999-10-11T19:06:27"
try {
ISODateTimeFormat.dateTimeParser().parseDateTime(dateString)
} catch (java.lang.IllegalArgumentException iae) {
assert false
}
assert true