Click or drag to resize

DateTimeOffsetExtensionsMonthOfEpoch Method

Returns the Inner Drive epochal month, which is the whole month number counting from January 2001 = 0.

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public static int MonthOfEpoch(
	this DateTimeOffset dateTimeOffset
)

Parameters

dateTimeOffset  DateTimeOffset
This DateTimeOffset.

Return Value

Int32
An Int32 containing the IDT epochal month number.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTimeOffset. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Example
C#
var testDate = new DateTimeOffset(2002, 1, 1, 0, 0, 0, TimeSpan.Zero);
? testDate.MonthOfEpoch();

// Result: 12
See Also