Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

if value is smaller than...

Posted 04 May 2004 18:50:20
1
has voted
04 May 2004 18:50:20 Claudio Huyskens posted:
I put it this way, but it returned every value in days that does not contain 7

<font color=red>&lt;%If DateDiff("d", Date, PremiumJob.Fields.Item("Datum".Value) &lt; "7" then%&gt;</font id=red>

Is there anything wrong with the "&lt;"

Thanks in advance

Replies

Replied 04 May 2004 19:32:33
04 May 2004 19:32:33 Vince Baker replied:
Try it without the quotes as 7 should be a number and not text (i think)

Also, are you trying to get the 1st to the 6th of each month?

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 04 May 2004 20:40:15
04 May 2004 20:40:15 Claudio Huyskens replied:
no, I´m trying to show the difference of today´s date and a submitted date as number of days
Replied 04 May 2004 20:42:17
04 May 2004 20:42:17 Claudio Huyskens replied:
thanks anyway, it works fine without the quotes.
Replied 04 May 2004 21:17:24
04 May 2004 21:17:24 Vince Baker replied:
i will read the code properly next time! lol

At least the fix worked.

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic