Date

SetPeriod

Description

SetPeriod sets the Date value using one or more date points combined with a Period Type to set the date in the period format:

Syntax

dt:SetPeriod(strPeriodType, dpDatePoint1 [,dpDatePoint2])

Parameters

strPeriodType
from The date-point provided in dpDatePoint1 is required and is the from date, no end date is used.
to The date-point provided in dpDatePoint1 is required and is the to date, no start date is used.
from-to Both dpDatePoint1 and dpDatePoint2 are required and are used as the from and to date respectively.
dpDatePoint1
date-point object
dpDatePoint2
date-point object (optional)

Return Value

None

Remarks

Example
dtOccuDate:SetPeriod('from-to',dpStartDate,dpEndDate)