Revision [11488]
This is an old revision of KeyPgDateSerial made by JeffMarshall on 2007-11-09 17:06:01.
DATESERIAL
Creates a ProPgDates date serial
Syntax:
KeyPgDeclare declare KeyPgFunction function DateSerial ( KeyPgByval byval year KeyPgAs as KeyPgInteger integer, KeyPgByval byval month KeyPgAs as KeyPgInteger integer, KeyPgByval byval day KeyPgAs as KeyPgInteger integer ) KeyPgAs as KeyPgInteger integer
Usage:
#include "vbcompat.bi"
result = DateSerial( year, month, day )
result = DateSerial( year, month, day )
Parameters:
year
the year
month
the month of the year
day
the day of the month
Return Value:
Returns a ProPgDates date serial containing the date formed by the values in the year, month and day parameters.The date serial returned has no decimal part.
Description:
The compiler will not recognize this function unless vbcompat.bi or datetime.bi is included.
Examples:
#include "vbcompat.bi"
Dim a As Double = DateSerial(2005, 11, 28)
Print Format(a, "yyyy/mm/dd hh:mm:ss")
Dim a As Double = DateSerial(2005, 11, 28)
Print Format(a, "yyyy/mm/dd hh:mm:ss")
Differences from QB:
- Did not exist in QB. This function appeared in PDS and VBDOS
See also:
- ProPgDates Date Serials
- KeyPgDateSerial DateSerial
- KeyPgTimeValue TimeValue
- KeyPgDateValue DateValue
Back to Date and Time Functions