Skip to content

Methods_T_CodeJam_Dates_DateTimeExtensions

Andrew Koryavchenko edited this page Jul 4, 2017 · 2 revisions

DateTimeExtensions Methods

Methods

 

Name Description
Public methodStatic member AddMonths(DateTime, Int32, Boolean) Returns the date resulting from adding the given number of months to this date.
Public methodStatic member AddMonths(DateTimeOffset, Int32, Boolean) Returns the date resulting from adding the given number of months to this date.
Public methodStatic member AddYears(DateTime, Int32, Boolean) Returns the date resulting from adding the given number of years to this date.
Public methodStatic member AddYears(DateTimeOffset, Int32, Boolean) Returns the date resulting from adding the given number of years to this date.
Public methodStatic member DaysInMonth(DateTime) Returns count of days in month.
Public methodStatic member DaysInMonth(DateTimeOffset) Returns count of days in month.
Public methodStatic member DaysInYear(DateTime) Returns count of days in year.
Public methodStatic member DaysInYear(DateTimeOffset) Returns count of days in year.
Public methodStatic member FirstDayOfMonth(DateTime) Returns the first day of month.
Public methodStatic member FirstDayOfMonth(DateTimeOffset) Returns the first day of month.
Public methodStatic member FirstDayOfYear(DateTime) Returns the first day of year.
Public methodStatic member FirstDayOfYear(DateTimeOffset) Returns the first day of year.
Public methodStatic member LastDayOfMonth(DateTime) Returns the last day of month.
Public methodStatic member LastDayOfMonth(DateTimeOffset) Returns the last day of month.
Public methodStatic member LastDayOfYear(DateTime) Returns the last day of year.
Public methodStatic member LastDayOfYear(DateTimeOffset) Returns the last day of year.
Public methodStatic member NextDay(DateTime) Returns next day of the date.
Public methodStatic member NextDay(DateTimeOffset) Returns next day of the date.
Public methodStatic member NextMonth(DateTime) Returns next month of the date.
Public methodStatic member NextMonth(DateTimeOffset) Returns next month of the date.
Public methodStatic member NextYear(DateTime) Returns next year of the date.
Public methodStatic member NextYear(DateTimeOffset) Returns next year of the date.
Public methodStatic member PrevDay(DateTime) Returns previous day of the date.
Public methodStatic member PrevDay(DateTimeOffset) Returns previous day of the date.
Public methodStatic member PrevMonth(DateTime) Returns previous month of the date.
Public methodStatic member PrevMonth(DateTimeOffset) Returns previous month of the date.
Public methodStatic member PrevYear(DateTime) Returns previous year of the date.
Public methodStatic member PrevYear(DateTimeOffset) Returns previous year of the date.
Public methodStatic member WithDay(DateTime, Int32) Updates the day of the date.
Public methodStatic member WithDay(DateTimeOffset, Int32) Updates the day of the date.
Public methodStatic member WithMonth(DateTime, Int32) Updates the month of the date.
Public methodStatic member WithMonth(DateTimeOffset, Int32) Updates the month of the date.
Public methodStatic member WithMonth(DateTime, Int32, Boolean) Updates the month of the date.
Public methodStatic member WithMonth(DateTimeOffset, Int32, Boolean) Updates the month of the date.
Public methodStatic member WithMonthAndDay(DateTime, Int32, Int32) Updates the month and the day of the date.
Public methodStatic member WithMonthAndDay(DateTimeOffset, Int32, Int32) Updates the month and the day of the date.
Public methodStatic member WithMonthAndDay(DateTime, Int32, Int32, Boolean) Updates the month and the day of the date.
Public methodStatic member WithMonthAndDay(DateTimeOffset, Int32, Int32, Boolean) Updates the month and the day of the date.
Public methodStatic member WithYear(DateTime, Int32) Updates the year of the date.
Public methodStatic member WithYear(DateTimeOffset, Int32) Updates the year of the date.
Public methodStatic member WithYear(DateTime, Int32, Boolean) Updates the year of the date.
Public methodStatic member WithYear(DateTimeOffset, Int32, Boolean) Updates the year of the date.
Public methodStatic member WithYearAndMonth(DateTime, Int32, Int32) Updates the year and the month of the date.
Public methodStatic member WithYearAndMonth(DateTimeOffset, Int32, Int32) Updates the year and the month of the date.
Public methodStatic member WithYearAndMonth(DateTime, Int32, Int32, Boolean) Updates the month and the year of the date.
Public methodStatic member WithYearAndMonth(DateTimeOffset, Int32, Int32, Boolean) Updates the month and the year of the date.
  Back to Top

See Also

Reference

DateTimeExtensions Class
CodeJam.Dates Namespace

Clone this wiki locally