MakeDayCount (open)
Returns the number of days since 01-01-0001.
Syntax
LOADLIB "wh::datetime.whlib";
INTEGER FUNCTION MakeDayCount(INTEGER year, INTEGER month, INTEGER day)
Parameters
INTEGER year
The end year
INTEGER month
The end month
INTEGER day
The end day
Return value
INTEGER
The number of days that have passed since 01-01-0001 until {@italic day}-{@italic month}-{@italic year}. Value 1 represents 01-01-0001.
Description
@italic MakeDayCount() returns the number of days that have passed since 01-01-0001 until day @italic day of month @italic month of year @italic year, starting at 1 for 01-01-0001.
This function is in essence the same as @italic GetDayCount(), except that @italic GetDayCount() uses a parameter of type @italic DateTime, whereas @italic MakeDayCount() uses three integers for year, month and day.
Examples
// get the number of days passed since 1-1-0001 until Aug 31st, 1997
INTEGER NumberOfDays := MakeDayCount(1997,8,31);