Here is what I see in Reflector :
Public Shared Function IsDate(ByVal Expression As Object) As Boolean
Dim time As DateTime
If (Expression Is Nothing) Then
Return False
End If
If TypeOf Expression Is DateTime Then
Return True
End If
Dim str As String = TryCast(Expression,String)
Return ((Not str Is Nothing) AndAlso Conversions.TryParseDate(str, (time)))
End Function
Now the question is: if passed Date(VB.NET keyword for values DateTime), can this method ever return false?
No.
If (Expression Is Nothing)
This value will never be true for a type with a short value.
If TypeOf Expression Is DateTime
This will always be if the method is explicitly passed a Date.
TypeOf A Is B false, B A ( ), , true, DateTime, , .
, .
, IsDate String Object, ; - - SelectedDate, Date, .