public int CompareTo(SmartDate value) { if (IsEmpty && value.IsEmpty) { return(0); } return(_date.CompareTo(value.Date)); }
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); }
public static bool TryParse(string value, ref SmartDate result) { return(TryParse(value, EmptyValue.MinDate, ref result)); }