I'm not sure what I'm doing wrong here so maybe you can help.
I have two variables. Both hold dates. One is today's date and the other date is passed via a form.
strTodaysDate = Date()
strMoveInDate = TRIM(CDATE(Request.Form("moveInDate")))
Now I have a script like this:
If strMoveInDate < strTodaysDate THEN
strErrorMessage = strErrorMessage + "- The Move-In date can not be less than today's date <br />"
strErrorCount = 1
Here's the problem. If the passed date is 10/30/2011 the If then doesn't seam to work. The strErrorCount doesn't = 1. What am I doing wrong?