Click or drag to resize
AstroUtilsFormatMJD Method
Returns a modified Julian date as a string formatted acording to the supplied presentation format

Namespace: ASCOM.Astrometry.AstroUtils
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public string FormatMJD(
	double MJD,
	string PresentationFormat
)

Parameters

MJD
Type: SystemDouble
Mofified julian date
PresentationFormat
Type: SystemString
Format representation

Return Value

Type: String
Date string
Exceptions
ExceptionCondition
FormatExceptionThrown if the provided PresentationFormat is not valid.
Remarks
This expects the standard Microsoft date and time formatting characters as described in http://msdn.microsoft.com/en-us/library/362btx8f(v=VS.90).aspx
See Also