Date Point

SetValue

Description

The SetValue method, sets the value of a date point object.

Syntax

dp:SetValue([iYear[,iMonth [, iDay [, bYearDD [, bBC [, strCalendar]]]]]])

Parameters

iYear
integer: Year
iMonth
integer (optional): month, eg 1=January 6=June
iDay
integer (optional): day of month
bYearDD
boolean (optional): True if Year is to be treated as a "Double Date" eg 1721 to be shown as 1721/22
bBC
boolean (optional): True if year is BC (Before Christ)
strCalendar
string (optional): Calendar Type
GREGORIAN (default)
JULIAN
HEBREW
FRENCH (French Revolutionary Calendar)

Note: bYearDD and bBC are only applicable when the GREGORIAN calendar is in use.

Return Value

None

Remarks

Example
dpDatePt = fhNewDatePt()
dpDatePt:SetValue(1911,3,11)