Exemple #1
0
 public int CompareTo(SmartDate value)
 {
     if (IsEmpty && value.IsEmpty)
     {
         return(0);
     }
     return(_date.CompareTo(value.Date));
 }
Exemple #2
0
        public static bool TryParse(string value, EmptyValue emptyValue, ref SmartDate result)
        {
            DateTime dateResult = DateTime.MinValue;

            if (TryStringToDate(value, emptyValue, ref dateResult))
            {
                result = new SmartDate(dateResult, emptyValue);
                return(true);
            }
            return(false);
        }
Exemple #3
0
 public static bool TryParse(string value, ref SmartDate result)
 {
     return(TryParse(value, EmptyValue.MinDate, ref result));
 }