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

AVEVA™ Plant SCADA

DateSerial

  • Last UpdatedJul 18, 2023
  • 1 minute read

Constructs a date value from the given Year, Month, and Day arguments passed to the function. The DateSerial function expects all three parameters to be valid. Date values in VBA are evaluated using the Gregorian Calendar.

Syntax

DateSerial(year,month,day)

year, month, day:

The year, month and day as integers.

Return Value

Returns a Variant (of date data type) containing a date value corresponding to the Year, Month and Day values that were passed in to the function.

TimeSerial

Example

Dim varMyBDate
varMyBDate = DateSerial(1958, 7, 08)
' constructs and stores date value.

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