IsDate Function | |
Determine if a value is a DATE.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION IsDate(
uValue AS USUAL
) AS LOGIC
public static bool IsDate(
Usual uValue
)
Request Example
View SourceParameters
- 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:
1IF IsString(uValue)
2 uValue := CToD(uValue)
3ELSEIF !IsDate(uValue)
4 uValue := Today()
5ENDIF
See Also