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

AVEVA™ Plant SCADA

DateAdd

  • Last UpdatedJul 18, 2023
  • 1 minute read

Adds time (in seconds) to a time/date value. The return value is in time/date variable format. Use this function for time and date calculations.

Syntax

DateAdd(Time, AddTime)

Time:

The time/date to which the AddTime will be added.

AddTime:

The time to add, in seconds.

Return Value

The date as a time/date variable.

TimeToStr, DateSub

Example

DateVariable=DateAdd(StrToDate("3/11/91"),86400);

! Adds 24 hours to 3/11/91.

NewDate=TimeToStr(DateVariable);

! Sets NewDate to 4/11/91.

See Also

Time and Date Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in