Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validate a date on text box

Status
Not open for further replies.

hungnguyen

Programmer
Sep 22, 2000
43
US
Hi All,

How do you validate a date on a textbox? Let me clarify.
I have a text box named :Date Due". If I enter the date and save information of the form, there is no problem. However, when I type other than date format as "ASAP", there is a problem to save my information because the datatype is set for date due is Date Format(SQL Database).

Is Any way I can validate the format of Date Due before saving. I mean to to save the info. into database if there is a correct format of Date Due; otherwise, it won't save...better than an error message.
Thanks for your help.
bye
Hung Nguyen
 
yes : check out the faqs - there is one very well done on this subject
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top