I have a TextBox that accepts only 4 numbers before the user
can click the OK button.

And what do I want to do with this?

I want to check if the number entered in the TextBox is more
than 2 years away(lower) from the actual date's year

How can I do this?
How can I convert the TextBox.Text into
date format.