public static GetOADate ( this element, string attributeName = "date" ) : DateTime? | ||
element | this | |
attributeName | string | |
return | DateTime? |
public static DateTime? GetOADate(this XmlElement element, string attributeName = "date")
{
string strValue = element.GetAttributeValue(attributeName);
if (String.IsNullOrEmpty(strValue))
{
return null;
}
return strValue.ToOADate();
}