Date

GetSubtype

Description

Returns the subtype of a Date Object if it has one. Only certain date types have subtypes. See also dt:GetType.

Syntax

strDateType = dt:GetSubtype()

Parameters

None

Return Value

strDateType
string: Subtype of date. The possible values depend on the type of date, and are given in the table below.
Subtypes Date Type Description
Approximate Simple Date is not exact
Calculated Simple Date has been calculated mathematically, for example from an event date and age.
Estimated Simple Date is based on an algorithm using some other event date.
From Period Only the start of the period is known.
To Period Only the end of the period is known.
From-To Period Both start and end of period are known.
After Range The date is given imprecisely as some time after a given date-point.
Before Range The date is given imprecisely as some time before a given date-point.
Between Range The date is given imprecisely as some time between two date-points.