Skip to main content



BuildDate Function

The BuildDate function returns a date from a specified year, month, and day.

Syntax 1

BuildDate(year)

The BuildDate function returns a date from a specified year, month, and day.

Arguments

year Integer - Year number.

Syntax 2

BuildDate(year, month)

The BuildDate function returns a date from a specified year, month, and day.

Arguments

year Integer - Year number.

month Integer - Month number, in the range 1-12. If omitted, 1 (January) is assumed.

Syntax 3

BuildDate(year, month, day)

The BuildDate function returns a date from a specified year, month, and day.

Arguments

year Integer - Year number.

month Integer - Month number, in the range 1-12. If omitted, 1 (January) is assumed.

day Integer - Day number, in the range 1-31. If omitted, 1 (the first of the month) is assumed.

Remarks

Example:

BuildDate(1999); // returns 01/01/1999

Example:

BuildDate(1999, 5); // returns 05/01/1999

Example:

BuildDate(1999, 5, 31); // returns 05/31/1999