SqlFunctions.IsDate Method (String)
Indicates whether the input value is a valid date or time.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
[DbFunctionAttribute("SqlServer", "ISDATE")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<int> IsDate( string arg )
Parameters
- arg
-
Type:
System.String
The tested value.
Return Value
Type: System.Nullable<Int32>1 if the input expression is a valid date or time value of datetime or smalldatetime data types; otherwise, 0.