MakeDate (open)
Returns a DateTime value from year, month and day values with time 00:00:00
Syntax
LOADLIB "wh::datetime.whlib";
DATETIME FUNCTION MakeDate(INTEGER year, INTEGER month, INTEGER day)Parameters
INTEGER yearAn integer, representing the year
INTEGER monthAn integer, representing the month
INTEGER dayAn integer, representing the day
Return value
DATETIMEA DateTime value representing 00:00:00 hours at date {@italic day}-{@italic month}-{@italic year}. The default datetime is returned if the specified values are out of range.
Examples
// returns a DateTime representing August 31st 1997
DATETIME theDate:= MakeDate (1974, 8, 31);