C
c676228
Hi all,
I hope I am not out of my mind.
I have the following code:
The iMonthlenght here is 1, EffectiveDate is 12/16/2008,
expiration date is 1/12/2009. I displayed in the web already.
'*****************************
Response.Write "Effective Date Value again: " & DateAdd("m", iMonthLength,
EffectiveDate) & "<br>"
Response.Write "Expiration Date again before comparision: " &
ExpirationDate & "<br>"
'********************
'after checking, the debugging message still shows that EffectiveDate is
12/16/2008,
expiration date is 1/12/2009, while DateAdd("m", iMonthLength,
EffectiveDate) is
1/16/2009. but somehow
DateAdd("m", iMonthLength, EffectiveDate) <= ExpirationDate
evaluates to be true. I don't get it. How come 1/16/2009 is earlier than
1/12/2009.
if DateAdd("m", iMonthLength, EffectiveDate) <= ExpirationDate then
'my program gets to here for the data I gave
above????
Response.Write "strange value again?: " & "<br>"
Response.Write DateAdd("m", iMonthLength, EffectiveDate)
Response.Write "<br>"
Response.Write ExpirationDate & "<br>"
' it tells me in black and while that my
effectiveDate and expiration don't change at all, that's what I expected but
how come this statement -DateAdd("m", iMonthLength, EffectiveDate) <=
ExpirationDate
would be true?
end if
I hope I am not out of my mind.
I have the following code:
The iMonthlenght here is 1, EffectiveDate is 12/16/2008,
expiration date is 1/12/2009. I displayed in the web already.
'*****************************
Response.Write "Effective Date Value again: " & DateAdd("m", iMonthLength,
EffectiveDate) & "<br>"
Response.Write "Expiration Date again before comparision: " &
ExpirationDate & "<br>"
'********************
'after checking, the debugging message still shows that EffectiveDate is
12/16/2008,
expiration date is 1/12/2009, while DateAdd("m", iMonthLength,
EffectiveDate) is
1/16/2009. but somehow
DateAdd("m", iMonthLength, EffectiveDate) <= ExpirationDate
evaluates to be true. I don't get it. How come 1/16/2009 is earlier than
1/12/2009.
if DateAdd("m", iMonthLength, EffectiveDate) <= ExpirationDate then
'my program gets to here for the data I gave
above????
Response.Write "strange value again?: " & "<br>"
Response.Write DateAdd("m", iMonthLength, EffectiveDate)
Response.Write "<br>"
Response.Write ExpirationDate & "<br>"
' it tells me in black and while that my
effectiveDate and expiration don't change at all, that's what I expected but
how come this statement -DateAdd("m", iMonthLength, EffectiveDate) <=
ExpirationDate
would be true?
end if