Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: alorentzPosted on 2004-03-04 at 11:18:02ID: 10516712
I didn't read through all the code, but the idea is to compare time created to Now()...correct?
Best way to do that is use the DateDiff function:
min = dateDiff("n", datecreated, Now())
- "n" means to determine minutes apart
- datecreated should be the value of the file creation date
- Now() meanes compare to right now
min will be the time, in minutes between the file creation and Now(). Then compare min to the allowable minutes (looked like you were passing 15)
Get it? i think that will be a lot less code than you have...