Vamsi k

Vamsi k

  • NA
  • 296
  • 45.5k

Date validation

Dec 4 2018 7:24 AM
Hi everyone,
 
How to validate date  mm/dd/yyyy in a textbox.(vb.net)
 
suppose if i enter 13/12/2018 then it should give error message like date format must be "mm/dd/yyyy"
 
and if we enter 13/32/2018 then it should give error message as "invalid date" 
 
 
** Note:Don't take any calender control for the above requirement.
 
I need the above example in vb.net code. 
 
If user give input in the textbox  13/12/2018 then it should give error message like date format must be "mm/dd/yyyy" and he enter 13/32/2018 then it should give error message as "invalid date"
 
 
Please share your ideas
 
 
Thanks
 
Vamsi 
 
 
 

Answers (3)