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

AVEVA™ Plant SCADA

DateValue

  • Last UpdatedJul 18, 2023
  • 1 minute read

Calculates a date from the given date argument passed to the function. Date values in VBA are evaluated using the Gregorian Calendar. The DateValue function expects the argument value (Date)to be a string or any expression that can represent a date.

Syntax

DateValue(Date)

Date:

A string or expression that can represent a date value. This includes any combination of date literals, numbers that look like dates, strings that look like dates, and dates from functions.

Return Value

Returns a variant (of date data type) corresponding to the string date expression that was passed in.

TimeValue

Example

Dim varMyBDate
varMyBDate = DateValue("1958/07/08")
' stores date value.

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