Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

SetSystemDate

  • Last UpdatedOct 29, 2026
  • 1 minute read

Sets the date in the operating system's clock.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

SetSystemDate

Date and Time

Synchronous

No

Supported

Supported

Not supported

Supported

Not supported

Syntax

SetSystemDate(strDate)

strDate

A string or string tag of the date to which the system clock will be set, formatted according to the current date format. For more information, see About the date format and how to change it.

Return value

Value

Description

1

Success

0

Failure

Notes

For this function to be executed successfully and change the system settings, you must run AVEVA Edge 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 the Compatibility tab, and then select the Run this program as an administrator check box.

Examples

Set the system clock to April 15, 2002:

SetSystemDate("04/15/2002")

In This Topic