how to control/check Date datatype inputs in textobx?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have been adding a handler to the TextBox.Leave event to check if a value
that is entered in a Date Textbox is a Date. This works OK. But I am just
checking if there is anything built-In to VB2005 that does this. I have
already discovered several goodies that I had not previously been taking
advantage of.

Is there anything built-in to handle Date datatype checking for controls?

Thanks,
Rich
 
Depends on how you define built-in I suppose

There is DateTime.Parse, DateTime.TryParse, DateTime.ParseExact and
DateTime.TryParseExact that you can use to convert a string to a date. If by
built-in you mean something like a DateTextBox, then no, there is no such
control. The closest would be DateTimePicker

/claes
 
Back
Top