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