Tuesday, February 22, 2011

check Date is valid in the string type bounded textbox in Windows phone 7

try
{
System.Globalization.CultureInfo cul = CultureInfo.InVariantCulture;
datetime dt = DateTime.Parse("dfasdas",cul);
}
catch
{
MessageBox.Show("Invalid Date");
}

No comments:

Post a Comment