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
Date Validation in winforms
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jean PaulRank #32 · 38.5K reputationPosted Oct 3, 2011, 11:06 AM EDT
You can use:
DateTime dateTime = DateTime.ParseExact(text, "dd/mm/yyyy", null);
Regards,
JP
raja ramesh46 reputationPosted Oct 5, 2011, 6:02 AM EDT