public CustomFieldDateQuery(XmlNode node) : base(new CustomFieldDefinition(node.FirstChild)) { string queryString = Helpers.GetXmlAttribute(node, "query"); this.query = DateTime.ParseExact(queryString, "yyyyMMdd", CultureInfo.InvariantCulture); this.type = (DatePropertyQuery.PropertyQueryType) Enum.Parse(typeof(DatePropertyQuery.PropertyQueryType), Helpers.GetXmlAttribute(node, "type")); }
public CustomFieldDateQuery(CustomFieldDefinition definition, DateTime query, DatePropertyQuery.PropertyQueryType type) : base(definition) { this.query = query; this.type = type; }