I wish to convert 3 numbers (for example, 10, 5, 2004) to a date and then subtract that date from today's date.
I tried writing something like this
enteredDate = cInt(Request.Form("smonth")) & "/" & cInt(Request.Form("sday")) & "/" & cInt(Request.Form("syear"))
response.write date - enteredDate
However I get an error. Is my code for 'enteredDate' a valid date, or is it simply a string? If it is a string, then how do I construct it as a date?
I tried writing something like this
enteredDate = cInt(Request.Form("smonth")) & "/" & cInt(Request.Form("sday")) & "/" & cInt(Request.Form("syear"))
response.write date - enteredDate
However I get an error. Is my code for 'enteredDate' a valid date, or is it simply a string? If it is a string, then how do I construct it as a date?