JavaScript Editor js editor     Web development 



Main Page

Returns a DateTime value from a Date expression.

DTOT(dDateExpression)

Parameters

dDateExpression


Specifies the Date expression from which a DateTime value is returned.

Return Value

DateTime

Remarks

The format of the DateTime value DTOT(В ) returns depends on the current SET DATE and SET MARK settings. If a century isn't supplied, the twentieth century is assumed.

DTOT(В ) adds a default time of 12:00:00 AM (if SET HOURS is 12) or 00:00:00 (if SET HOURS is 24) to the date to produce a valid DateTime value.

Example

В Copy Code
SET HOURS TO 12
? DTOT({^2004-02-16}) && Displays 02/16/2004 12:00:00 AM

See Also



JavaScript Editor js editor     Web development