SetSystemDate
Sets the date in the operating system’s clock.
Function | Group | Execution | Windows | Embedded | Thin Client | Mobile Access |
---|---|---|---|---|---|---|
SetSystemDate | Date & Time | Synchronous | Supported | Supported | Supported | Not supported |
Syntax
SetSystemDate(strDate)
- strDate
- The date (in MM/DD/YYYY format) in which to set the clock.
Returned value
This function does not return any value.
Notes
For this function to execute successfully and change the system settings, you must run InduSoft Web Studio with Administrator privileges. To run as an administrator once, right-click the program icon and then click Run as administrator on the shortcut menu. To always run as an administrator, open the program’s Properties dialog box, click Compatibility, and then select Run this program as an administrator.
Examples
Set the system clock to 15 Apr 2002:
SetSystemDate("04/15/2002")