PDA

View Full Version : Date()


ender
29 Apr 2001, 14:26
How can I tell with a date string if the last activity # is two+ weeks old? Is there a number that can show two weeks?

LIke if I have the number: 988515692

How can I check to see if that number is two or more weeks old? Like what would the if statement look like and what else do I need?

ender
29 Apr 2001, 17:21
Basicially my question is: is that # above in seconds? And when from? If I minus 1209600 from it will that be two weeks ago?

Ahh, this is getting a bit confusing... how is the lastactivity string formatted?

If I do



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Will this work?

Steve Machol
29 Apr 2001, 17:34
I believe it's seconds since 01-01-1970 and subtracting seconds should work.