Date Validation using C#

Reply Forum
Forum posted santana @ 2010-09-07 04:04:47
ReplyReply to
Hi,
I am new with .NET coding. I would like some help in validating a Date. I already have the Calendar extender on my code. What I need help on is validating the date. The scenario goes something like this:

If selected date < systemdate then
message = "registration has expired"
else if (selected date > systemdate and selected date <= systemdate +45) then
message = "additional fees will be incurred"
else if (selected date > systemdate+45 and selected date < systemdate + 90) then
message = "You will be on a waiting list"
else
message = "Application can not be processed"

Help!

Thank you,
Ed












© net-tutorials.com 2006 - 2012

MailContact net-tutorials.com