Date

SetSimpleDate

Description

SetSimpleDate sets the data item at the current pointer to a simple date.

Syntax

dt:SetSimpleDate(dpDatePoint[, strSubtype])

Parameters

dpDatePoint
DatePoint: Date Point Object containing the Date to be Set.
strSubType
string (optional): date clarifier, can be one of the values below either in full or just the first 3 letters
estimated estimated date (est)
calculated Calculated date (cal)
approximate approximate date (app)

Return Value

None

Remarks

This should only be used where the data item has or will have a "DATE" tag.

An alternate method of setting a simple date is to use the fhNewDate

Example
dtDate = fhNewDate()
dpDatePoint = fhNewDatePt(1911,3,11) 
dtDate:SetSimpleDate(dpDatePoint,'estimated')