Insert a time/date variable
Use the
Time Date
dialog to insert a time and date variable in a text box. The time and date will change dynamically at runtime.For example, many developers like to put the system time and date on the main display. To do this, embed a time and date variable in a text string and link it to a system time tag. For example, the string "Current time is /*t*/" might display as Current time is 3:04:45 pm.
TIP:
Embedded variables are case sensitive, and must be in the proper format and syntax to work. If you make a mistake, your variable will be treated as a piece of text. Therefore, do not attempt to edit embedded variables manually. Use the
Insert Variable
and Edit variable
dialog boxes to avoid problems.To set up a time/date variable
- In theCaptionbox in a graphic object’sPropertiesdialog box, or in theMessagecolumn of theLocal Messages,Information Messages, orAlarm Setupeditor, clickInsert Variable.
- ClickTime/Date.
- Select an option.
- ClickOK.TIP:The time-and-date formats in the list will be shown in the language of the operating system as defined in theRegional Optionstab of theRegional and Language Optionsdialog box in theControl Panel. The time and date will be shown in the current language of the application.
Provide Feedback