CitectVBA Programming Reference > CitectVBA Function Reference > Date and Time Functions > DateSerial


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 CitectVBA are evaluated using the Gregorian Calendar.



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.

Related Functions



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