Aspectacular.RelativeTimeSpanExtensions.ToDate C# (CSharp) Method

ToDate() public static method

public static ToDate ( this unit, System.DateTime referenceMoment ) : DateRange
unit this
referenceMoment System.DateTime
return DateRange
        public static DateRange ToDate(this TimeUnits unit, DateTime? referenceMoment)
        {
            var span = new RelativeTimeSpan(Timeline.ToDateOrTillSpecified, unit);
            DateRange range = span.GetDateTimeRange(referenceMoment);
            return range;
        }

Same methods

RelativeTimeSpanExtensions::ToDate ( this unit, DateTimeOffset referenceMoment = null ) : TimeMomentRange