raja ramesh

raja ramesh

  • NA
  • 50
  • 108.4k

Date Validation in winforms

Oct 3 2011 2:02 PM
Hi,

I am working with windows applications

I am using MaskedEditBox(RadMaskedEditBox, telerik)
for this I am using masktype is standered and mask is 00/00/00

This date text box validated based on system date format but I want to validate date based on dd/mm/yyyy format
My code is 

try
{
DateTime d=DateTime.parse(datetext); 
}
catch(...)
{...}

Please can you tel me how to validate date based on dd/mm/yyyy format

Answers (2)