cjkenworthy
Programmer
I want to calculate the difference between two dates using the following code:
dim cancel_date, date_now, difference
cancel_date = NGN.Fields.Item("date_held".Value
date_now = Date()
difference = DateDiff("d", cancel_sale, date_now)
if difference > 7 then
response.write("Yes"
else
response.write("No"
end if
Problem is, given
'cancel_date' has a value of 09/12/02
'date_now' has a value of 11/12/02
difference is '37601' for some strange reason.
Any ideas?
dim cancel_date, date_now, difference
cancel_date = NGN.Fields.Item("date_held".Value
date_now = Date()
difference = DateDiff("d", cancel_sale, date_now)
if difference > 7 then
response.write("Yes"
else
response.write("No"
end if
Problem is, given
'cancel_date' has a value of 09/12/02
'date_now' has a value of 11/12/02
difference is '37601' for some strange reason.
Any ideas?