Documentation
Objects of type date contain a value which represents a date, and can be accessed either as a whole or by component, such as day, month and year. Valid dates are in the range 1/1/0001 to 31/12/9999, and the Gregorian calendar is assumed throughout that period.
The value of an object of type date is the number of days since 1/1/0001, and can be read or written.
Returns the day of the week for the date in the object, where 1 is Monday and 7 is Sunday.
| Parameter | Default value | Type name | Description |
|---|---|---|---|
| total | .true | boolean |
Indicates whether months are to be counted from the beginning of the current
year, or from the beginning of year 1. If
.false then the returned value will range from
1 for January to 12 for December. If .true
then the returned value will range from 1 for January 0001 to
119988 for December 9999. If the value of this parameter is
either .nul or .inf then
the result will be .nul.
|
Sets the value in a date object from the components specified.
The year component must always be given. Also,
either the dayinyear (and not the
month or dayinmonth) or the
month and dayinmonth (and not
the dayinyear) components must be given.
| Parameter | Default value | Type name | Description |
|---|---|---|---|
| year | None | integer |
Specifies the year component of the new date value, which must be in the range
1 to 9999. If the value of this parameter is
.nul then the date will be set to
.nul and if the value of this parameter is
.inf then the date will be set to
.inf.
|
| month | .nul | integer |
Specifies the month component of the new date value, which must be in the
range 1 to 12. If the value of this parameter is
.nul then the date will be set to
.nul and if the value of this parameter is
.inf then the date will be set to
.inf.
|
| dayinmonth | .nul | integer |
Specifies the day of the month of the new date value, which must be in the
range 1 to 28, 29, 30 or 31 depending on the year and month that
are specified. If the value of this parameter is
.nul then the date will be set to
.nul and if the value of this parameter is
.inf then the date will be set to
.inf.
|
| dayinyear | .nul | integer |
Specifies the day in the year of the new date value, which must be in the
range 1 to 365 or 366 depending on whether or not the year
specified is a leap year. If the value of this parameter is
.nul then the date will be set to
.nul and if the value of this parameter is
.inf then the date will be set to
.inf.
|
Sets the specified object to now according to the OS and returns the value of now for the date type.



