Print Page | Close Window

Help 5Days Old!

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15588
Printed Date: 30 March 2026 at 3:26am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Help 5Days Old!
Posted By: xavier
Subject: Help 5Days Old!
Date Posted: 25 June 2005 at 8:04am
hi guyz i was wondering
 
if you want to check that a users account is older than 5days b4 posting how do u go about it?


-------------
onError GoTo Hell



Replies:
Posted By: dj air
Date Posted: 25 June 2005 at 8:52am
you would have to do a check on post_message.asp

if strRegisteredDate < DateAdd("d", -5, NOW()) then

set the error message to not posted. and then set a veriable to say why.

the above is functional, but is an example


Posted By: xavier
Date Posted: 30 June 2005 at 9:48am
thanks dj
 
well i tried it but it doesn't work.
Cry


-------------
onError GoTo Hell


Posted By: ub3rl337ch3ch
Date Posted: 03 July 2005 at 7:08pm

try using date() instead of now()... it shouldn't make a difference, but stranger things have happened



Posted By: xavier
Date Posted: 07 July 2005 at 2:08pm
thanks guys
but this is what i used
 
DateDiff("d", strRegisteredDate, Date)
 
so i now check whether the result is greater than 5 and it's working perfectly
 
thanks guyz
 
Wink


-------------
onError GoTo Hell



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net