DateTimeExtensionsDayOfEpoch Method

Returns the Inner Drive epochal day, which is the whole day number counting from 2001-01-01T00:00:00+0000 = 0.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public static int DayOfEpoch(
	this DateTime dateTime
)

Parameters

dateTime  DateTime
This DateTime.

Return Value

Int32
An Int32 containing the IDT epochal day number.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. 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 DateTime(2002, 1, 1);
? testDate.DayOfEpoch();

// Result: 365

See Also