Hi Zaboss,
I tried your code on a test page and added some dates to see what results came out of it.
Either I am doing something seriously wrong or there is a problem with this script? The answer that was returned to me was 7? I do not know where the 7 comes from as the answer should be: 8,9,10?
Here is the code that I had on the test page.
<%
StrLast = DateDiff("m", 15-10-2003, 15-08-2003)
StrStart = DatePart("m", 15-08-2003)
StrEnd = DatePart("m", 15-10-2003)
For i = StrStart to StrEnd
Response.Write ""& i &""
If i > StrEnd then Exit for
Next
%>
Regards
Maxi:)
Edited by Maxi