Date

SetRange

Description

SetRange sets the Date value using one or more date points combined with a range type to set the date in the range format:

Syntax

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

Parameters

strPeriodType
string:
after The date-point provided in dpDatePoint1 is required and is the from date, no end date is used.
before The date-point provided in dpDatePoint1 is required and is the before date.
between Both dpDatePoint1 and dpDatePoint2 are required.
dpDatePoint1
date-point object
dpDatePoint2
date-point object (optional)

Return Value

None

Remarks

Example
dtOccuDate:SetRange('between',dpStartDate,dpEndDate)