
June 1st, 2000, 11:20 PM
|
|
Contributing User
|
|
Join Date: Mar 2000
Location: Minneapolis, MN
Posts: 48
Time spent in forums: 51 m 53 sec
Reputation Power: 14
|
|
|
I have a script that reports that day on which a post expires as: 2000-06-12. What i would like to do is post it instead as: Expires in: 11 Days.
So basically, I'm looking for a PHP3 way to do a Day of year Subtraction. I know with MySQL its:
(TO_DAYS(Expires) - TO_DAYS(Current_Date))
is there a way to do it without going back into MySQL, using PHP3? OR how to i configure my Select so that it will automatically output "Expires" date as a the day count UNTIL expires...
thanks,
dave
[This message has been edited by dave981 (edited June 01, 2000).]
|