Hi,
You can get both the properties in scripted assertion and compare after replacing "-", "T" and ":". Posting sample code below:
timeFromDB = testExec.getStateValue("property1").replaceAll("-","").replaceAll(":","");
timeFromXML = testExec.getStateValue("property2").replaceAll("-","").replaceAll(":","").replace("T"," ");
if ( timeFromDB .equals(timeFromXML) ){
return true;
}
Thanks,
Sai