Click or drag to resize

DateTimeExtensionsToJulianDay Method

Returns the Julian day number for a given DateTime.

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public static double ToJulianDay(
	this DateTime date
)

Parameters

date  DateTime
This DateTime.

Return Value

Double
The Julian day number for date.

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(2010, 11, 17, 12, 0, 0, DateTimeKind.Utc);
? testDate.ToJulianDay();

// Result: 2455518.0
See Also