DaysFromNow
DaysFromNow
Namespace
Summary== Returns a date in the future by days. ==Example==DateTime then=3.DaysFromNow(); ==Unit Test
public void DaysFromNowShoudReturnDateTimeAddDays3For3() { var today = DateTime.Now; var then = 3.DaysFromNow(); Assert.Equal(then, DateTime.Now.AddDays(3)); }
Comments
SubSonic 3.0 implements this as an extension on System.Int- 2.x uses a static method on SubSonic.Sugar.Dates.