Hi guys. Was wondering why the IsDate function always returns false.

Code:
dim myYear as string
myYear = trim(txtYear.text)

If isYear(myYear) = false then
msgbox("Not a year")
End if
Do I have to define the myYear variable of the date data type? Or is there some other problem?