Click or drag to resize

CrestronEnvironmentSetDate Method

Function to change the current date of the system.

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static void SetDate(
	ushort Month,
	ushort Day,
	ushort Year
)

Parameters

Month  UInt16
The month to which the date is set. Valid range is 1 through 12, corresponding to January through December.
Day  UInt16
The dat of the month to which to date is set. The range varies from month to month, but always starts at 1 and does not go above 31.
Year  UInt16
The year to which the date is set. The year is four digits, i.e. 2006.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionOne of the parameters is outside the valid range.
NotSupportedExceptionSetting the date is not supported in this environment.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also