This function works as a shortcut of one of the calls:
getAttrValue(element, attrName).toDate()
getAttrValue(attrName).toDate()
See Also:
getAttrValue(), toDate()