this shouldn't be soooooo difficult. it should be simple!!!
<%
Response.Write("<td align='right' class='detData' " & rowClass & "> " & date() & " </td>")
Response.Write("<td align='right' class='detData' " & rowClass & ">" & rst("Text4") & "</td>")
IssueDate = "" & rst("Text4") & ""
TodayDate = "" & date() & ""
IssueDayCount = round(IssueDate - TodayDate)
Response.Write("<td align='right' class='detData'" & rowClass & ">" & IssueDayCount & "</td></tr>")
%>[/COLOR]
Error:
Type mismatch: '[string: "9/25/2006"]'
Line: IssueDayCount = round(IssueDate - TodayDate)
I don't know why it's giving me a mismatch error. My Text Field Data Type is Text. User enters in a date in a Text field. I was able to extract it just fine. but when it compares.....with Text4 - TodayDate, it fails. can someone help me out here. All the codes that users are giving me would be helpful if the initial input of date were something else. But it's not.
I see the database Text4 = 9/25/2006
I just extracted out from a SQL which does show me 9/25/2006. why is it so hard to get the difference of days from that to the Present Date???????????!!!!!!!!! what is going on!!!!!!!! Giving me an error. :mad: