public RangeDate(PersianDate fromDate, PersianDate toDate)
 {
     this.fromDate = fromDate;
     this.toDate   = toDate;
 }
        public virtual bool IsIn(DateTime now)
        {
            var pnow = new PersianDate(now);

            return(pnow >= fromDate && (toDate == null || pnow < toDate));
        }
 public RangeDate(PersianDate fromDate)
 {
     this.fromDate = fromDate;
 }