In my application there are 4 date fieds ....
in those i want to display error messge when the invalid date is entered...
for that how how can i check whether the entered date is valid or invalid...
plz help me,,,,
Thanks In Advance,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
manjula dPosted May 2, 2013, 2:52 AM
Dharmendra SinghPosted May 2, 2013, 2:27 AM
if (txtEmpDtofBirth.Text.Trim().Length > 0)
{
DateOfBirth = DateTime.ParseExact(txtEmpDtofBirth.Text, "MM/dd/yyyy", CultureInfo.InvariantCulture).ToString();
}
else
{
ScriptManager.RegisterStartupScript(this, GetType(), "showlalert", "alert('Invalid Joining Date');", true);
}
Dharmendra SinghPosted May 2, 2013, 2:23 AM
Sathish PabbathiPosted May 2, 2013, 2:00 AM
string DateOfBirth = "";
Dharmendra SinghPosted May 2, 2013, 1:38 AM
Sathish PabbathiPosted May 2, 2013, 1:25 AM
Dharmendra SinghPosted May 2, 2013, 1:23 AM