Skip to content

T_CodeJam_Dates_DateTimeExtensions

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

DateTimeExtensions Class

Helper methods for date manipulations

Helper methods for date manipulations

Helper methods for date manipulations

Inheritance Hierarchy

System.Object
  CodeJam.Dates.DateTimeExtensions
Namespace: CodeJam.Dates
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class DateTimeExtensions

VB

<ExtensionAttribute>
Public NotInheritable Class DateTimeExtensions

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type DateTimeExtensions =  class end

Methods

 

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

See Also

Reference

CodeJam.Dates Namespace

Clone this wiki locally