MindFusion.Wpf Pack Programmer's Guide
IsDate

Returns a boolean value indicating whether the specified expression can be converted to a date.

Syntax

 Copy Code

bool IsDate (
    object value
)

Parameters

value
Any expression.

Return Value

true, if value is a date or can be converted to a valid date; otherwise, false.

Remarks

A value is recognized as a date if it is a date, it is a string that contains a valid representation of a date, or it is a number. In the last case, the number will be interpreted as the number of ticks.

See Also

Inspection Functions
CDate Function
IsNull Function
IsNumeric Function