Exemple #1
0
        public TimeDate ThisMonth(IDateTimeHelper _dateTimeHelper)
        {
            DateTime today   = _dateTimeHelper.GetDateTimeNow();
            TimeDate ausgabe = new TimeDate
            {
                StartDate = new DateTime(today.Year, today.Month, 1)
            };

            ausgabe.EndDate = ausgabe.StartDate.AddMonths(1).AddDays(-1);
            return(ausgabe);
        }
Exemple #2
0
        public override bool Equals(object value)
        {
            if (value == null)
            {
                return(false);
            }

            TimeDate date = value as TimeDate;

            return((date != null) &&
                   (StartDate == date.StartDate) &&
                   (EndDate == date.EndDate));
        }