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#
Loading
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.
cyber budPosted Jan 18, 2010, 7:11 AM
Check this out
DateTime dtDischarge = Convert.ToDateTime("12-may-2011");
DateTime dtAdmit = Convert.ToDateTime("13-sep-2010");
if (dtDischarge < dtAdmit)
MessageBox.Show("invalid date");
Lalit MPosted Jan 18, 2010, 7:05 AM
Here Visit good sample code....