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.1.1.2619)

Syntax

C#
public string FormatMJD(
	double MJD,
	string PresentationFormat
)
Visual Basic
Public Function FormatMJD ( _
	MJD As Double, _
	PresentationFormat As String _
) As String
Visual C++
public:
virtual String^ FormatMJD(
	double MJD, 
	String^ PresentationFormat
) sealed

Parameters

MJD
Type: System..::..Double
Mofified julian date
PresentationFormat
Type: System..::..String
Format representation

Return Value

Date string

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

Exceptions

ExceptionCondition
System..::..FormatExceptionThrown if the provided PresentationFormat is not valid.

See Also