bas7advr.hlp (
Topic list)
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.
DateValue# Function Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
DateValue# returns a serial number that represents the date of the argument.
DateValue# (datetext$)
■ The argument datetext$ can have date formats such as
"December 30, 1988", "30/12/88 2:24 AM", and "28-Dec-1988".
■ If the year part of date is omitted, DateValue# uses the current year
from your computer's system date.
■ Time information, if included in the argument, is ignored.
Usage Notes
■ For information on serial numbers, see ◄Serial Numbers►.
Important
■ To use DateValue# in the QBX environment, use the FINANCER.QLB
Quick library. To use DateValue# outside the QBX environment, link
your program with the appropriate DTFMTxx.LIB file. Depending on
the compiler options you chose when you installed BASIC, one or
more of the following files will be available:
Filename Compiler options
════════════ ═════════════════════════════════════════════
DTFMTER.LIB 80x87 or emulator math; DOS or OS/2 real mode
DTFMTAR.LIB Alternate math; DOS or OS/2 real mode
DTFMTEP.LIB 80x87 or emulator math, OS/2 protected mode
DTFMTAP.LIB Alternate math; OS/2 protected mode
■ The DATIM.BI header file contains the necessary function
declarations for DateValue#.
■ For more information on using libraries, see "Creating and Using
Quick Libraries" and "Using LINK and LIB" in the BASIC Programmer's
Guide.