/// <summary> /// Inserts <Value> element with specified value and specifies whether to include time value in the comparison. Type will be 'DateTime'. /// </summary> public static CQValueElement Value(DateTime value, CQValueOption options) { return new CQValueElement(value.ToString("yyyy-MM-ddTHH:mm:ssZ", CultureInfo.InvariantCulture), CQValueType.DateTime.ToString(), (options & CQValueOption.IncludeTimeValue) != 0); }
/// <summary> /// Inserts <Now> element. Specifies if time value should be included in comparison. /// </summary> public CQValueElement Now(CQValueOption options) { return new CQValueElement(new CQNowElement(), CQValueType.DateTime.ToString(), (options & CQValueOption.IncludeTimeValue) != 0); }
public ICQOperatorElementValue Value(DateTime value, CQValueOption options) { _elements.Add(CQ.Value(value, options)); return this; }