Click or drag to resize

IsDate Function

X#
Determine if a value is a DATE.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION IsDate(
	uValue AS USUAL
) AS LOGIC
Request Example View Source

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Logic
TRUE if the value is a DATE data type; otherwise, FALSE.
Remarks
Examples
This example uses IsDate() to determine whether any data conversion is needed:
X#
1IF IsString(uValue)
2    uValue := CToD(uValue)
3ELSEIF !IsDate(uValue)
4    uValue := Today()
5ENDIF
See Also