DToT Function | |
Returns a DateTime value from a Date expression.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION DToT(
dDateExpression AS DATE
) AS DateTime
public static DateTime DToT(
Date dDateExpression
)
Request Example
View SourceParameters
- dDateExpression
- Type: Date
Specifies the Date expression from which a DateTime value is returned.
Return Value
Type:
DateTime
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.
Examples 1SET HOURS TO 12
2? DToT({^2004-02-16})
See Also