Hi there
I would be happy if any one could help me , in
getting the date validated according to particular date given by user,
for instance: discharge date should not be before than admit date given
by user in C#
Date validation according to particular date in c#-please
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Jan 18, 2010, 2:05 AM EST
Here Visit good sample code....
cyber bud4 reputationPosted Jan 18, 2010, 2:11 AM EST
Check this out
DateTime dtDischarge = Convert.ToDateTime("12-may-2011");
DateTime dtAdmit = Convert.ToDateTime("13-sep-2010");
if (dtDischarge < dtAdmit)
MessageBox.Show("invalid date");