Exemplo n.º 1
0
        /// <summary> Constructs a filter for Field <code>f</code> matching
        /// dates on or before before <code>date</code>.
        /// </summary>
        public static DateFilter Before(System.String field, System.DateTime date)
        {
            DateFilter result = new DateFilter(field);

            result.end = DateField.DateToString(date);
            return(result);
        }
Exemplo n.º 2
0
        /// <summary> Constructs a filter for Field <code>f</code> matching
        /// dates on or after <code>date</code>.
        /// </summary>
        public static DateFilter After(System.String field, System.DateTime date)
        {
            DateFilter result = new DateFilter(field);

            result.start = DateField.DateToString(date);
            return(result);
        }
Exemplo n.º 3
0
 /// <summary> Constructs a filter for Field <code>f</code> matching dates
 /// between <code>from</code> and <code>to</code> inclusively.
 /// </summary>
 public DateFilter(System.String f, System.DateTime from, System.DateTime to)
 {
     InitBlock();
     field = f;
     start = DateField.DateToString(from);
     end   = DateField.DateToString(to);
 }