Gets the value of TM, DTM and DT type fields.

Namespace: Mergecom.HL7
Assembly: Mergecom.HL7 (in Mergecom.HL7.dll) Version: 4.3.0.0

Syntax

C#
public DateTime GetDateValue()
Visual Basic
Public Function GetDateValue As DateTime
Visual C++
public:
DateTime GetDateValue()

Return Value

a DateTime structure representing the value of this field.

Remarks

This function returns a DateTime structure, if this field is null or empty, the default datetime will be returned, namely 01/01/0001 00:00:00.000+0000, which is the minimum datetime that the structure DateTime permits. The DateTime structure only supports two kinds of time zones: local and UTC. If the time zone is not specified or specified local time zone, the retruned DateTime is in local time zone, otherwise, it's in UTC time zone.

Exceptions

ExceptionCondition
HL7Exception..::..INVALID_DATA_TYPEIf the Date type is not one of "TM", "DT", and "DTM"

See Also