You could either cast the value as a date and catch the exception if it
isn't one, or you could read up on Regular Expressions and use one to
validate the format.
RegExs are more elegant, but catching the exception is quick, dirty, and
effective.
"Frank Rocco" <fa*****@hotmail.com> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
Hello,
What is the best way to validate a textbox to see if it contains a valid
date or a valid time or both?
Thanks
Frank