Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
DATESERIAL Function Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
DATESERIAL(year%, month%, day%)
Usage Notes
■ Arguments outside valid ranges are evaluated to calculate a valid date.
For example:
TheDate = DATESERIAL(92, 13, 1)
where the argument month% (13) evaluates to the first month of the next
year (January 1, 1993).
■ Specifying arguments that return a serial number outside the valid range
(-53,688 to 65,380) produces the Visual Basic error message, "Illegal
function call." Note: This translates to an actual date range of January
1, 1753 to December 31, 2078, inclusive.
■ You can use negative numbers as arguments. For example, to find the
serial number for the date one week before 9/1/92, you can use:
DATESERIAL(92, 9, 1-7)