Click or drag to resize

DateTimeExtensions Class

Extends the DateTime class to provide support for related operations.
Inheritance Hierarchy
SystemObject
  InnerDrive.CoreDateTimeExtensions

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public static class DateTimeExtensions

The DateTimeExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodCode exampleDayOfEpoch Returns the Inner Drive epochal day, which is the whole day number counting from 2001-01-01T00:00:00+0000 = 0.
Public Extension MethodCode exampleMonthOfEpoch Returns the Inner Drive epochal month, which is the whole month number counting from January 2001 = 0.
Public Extension MethodCode exampleMonthsBetween Returns the total number of months between two DateTime values.
Public methodStatic memberCode exampleOrdinalDate(OrdinalWeekday, DayOfWeek, Int32, Int32) Returns the date of the nth occurrence of a particular weekday in a given month.
Public methodStatic memberCode exampleOrdinalDate(OrdinalWeekday, DayOfWeek, Int32, Int32, Int32) Returns the date of the nth occurrence of a particular weekday in a given month.
Public Extension MethodCode exampleParseTime Parses textual time input into a DateTime.
Public Extension MethodCode exampleQuarterOfYear Determines which calendar quarter this DateTime is in.
Public Extension MethodCode exampleToDateTimeOffset Gets the DateTimeOffset equivalent of this DateTime object.
Public Extension MethodCode exampleToJulianDay Returns the Julian day number for a given DateTime.
Public Extension MethodToUnspecifiedKind Returns a DateTime as Unspecified regardless of the Kind value of the structure.
Public Extension MethodCode exampleWeekOfEpoch Returns the Inner Drive epochal week, which is the whole week number counting from 2001-01-01T00:00:00+0000 = 0.
Public Extension MethodCode exampleWeekOfYear Returns the week number of this DateTime.
Public Extension MethodCode exampleYearsBetween Returns the total number of years between this DateTime and another DateTime.
Top
See Also