I have the following problem:
This is my statement and rsCommon("SMD") is an date.
The date today is 11-december-2004 and the SMD = 09-september-2004
In the code i check if the SMD(date) is between 3 months and 6 months ago.
This statement above doesn't give me an response while it should be.
Maybe because it's weekend now i don't see it clearly but the if clause should result an true statement.
HELP!
This is my statement and rsCommon("SMD") is an date.
Code:
if DateDiff("m", now, rsCommon("SMD")) >= -3 and DateDiff("m", now, rsCommon("SMD")) <= -6 then
Response.write("<tr>") & vbCrLF
Response.write("<td>" & rsCommon("username") & "</td>") & vbCrLF
Response.write("<td> 3 m On </td>") & vbCrLF
Response.write("<td>" & DateAdd(("m"), 3, (rsCommon("SMD"))) & "</td>") & vbCrLF
Response.write("</tr>") & vbCrLF
end if
The date today is 11-december-2004 and the SMD = 09-september-2004
In the code i check if the SMD(date) is between 3 months and 6 months ago.
This statement above doesn't give me an response while it should be.
Maybe because it's weekend now i don't see it clearly but the if clause should result an true statement.
HELP!