MakeDateFromParts (open)

Creates a DateTime value from a total number of days and msecs

Syntax

LOADLIB "wh::datetime.whlib";

DATETIME FUNCTION MakeDateFromParts(INTEGER daycount, INTEGER msecs)

Parameters

INTEGER daycount

The number of days since 01-01-0001

INTEGER msecs

The number of milliseconds since 00:00:00 on day @italic daycount

Return value

DATETIME

A DateTime value on @italic daycount days since 01-01-0001 with time @italic msecs.

Description

This function returns the DateTime value from the number of days that have passed since 01-01-0001 and the time in milliseconds since midnight.