API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.BuildDate method
Build Date
Syntax:
Function BuildDate(ByVal Year As Long, ByVal Month As Long, ByVal Day As Long) As Date
Parameters:
Name Type Description
Year
Long
Month
Long
Day
Long
Remarks:
The BuildDate method assigns a date value to a date variable. The BuildDate method can accept only a date value between January 1, 1980 (date serial number 29221) and December 31, 2099 (date serial number 73050). If a date outside this range is specified, an error occurs.
Examples:
In the following code example, the first line declares the date variable BigDay. This variable is then assigned the date March 12, 2005.
DIM BigDay AS DATE BigDay = BUILDDATE(2005, 3, 12)