EasyManua.ls Logo

Crestron SIMPL+ - SETDATE Function

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 255
SETDATE
Name:
SetDate
Syntax:
SetDate(INTEGER MONTH, INTEGER DAY, INTEGER YEAR);
Description:
Sets the system date.
Parameters:
MONTH is an integer containing the month to which the date is set. A valid range is
1 through 12, corresponding to January through December.
DAY is an integer containing the day of the month to which the date is set. The range
varies from month to month, but always starts at 1.
YEAR is an integer containing the year to which the date is set. The year is four
digits, i.e. 1999.
Return Value:
None.
Example:
ANALOG_INPUT Month, Day, Year;
CHANGE Month, Day, Year
{
SetDate(Month, Day, Year);
PRINT(“Current Date is: %s\n”, Date(1));
}
In this example, Month, Day, and Year come from a SIMPL Windows program. For
example, if Month = 12, Day = 25, Year = 1999, the output from this program will
be Current Date = 12/25/1999.
Version:
SIMPL+ Version 2.00

Table of Contents