T
|
thesofa 9/21/2008 |
I am not sure exactly what you want, but there have been 2 recent threads about time and date things |
B
|
bochaka author 9/21/2008 |
Hi theSofa |
T
|
thesofa 9/21/2008 |
just use the php functions and you will be fine |
B
|
bochaka author 9/21/2008 |
Hi |
B
|
bochaka author 9/22/2008 |
Is there a better way to do this. |
![]() |
Admin 9/22/2008 |
There is a number of ways to calculate a difference between two dates in PHP code. Here is the article that provides sample code: |
B
|
bochaka author 9/23/2008 |
Ok, So the first thing I would need to do is use explode to extract the date time data from the database stored by phprunner, then possibly convert it to seconds and do the same with the current time, subtract one from the other and then convert the result back into days. |
F
|
fawad112 9/23/2008 |
Try this |
S
|
steveh 9/24/2008 |
Your other option is to do it all at the database level as oracle, microsoft sql and mysql all have datetime funcions, you could then return this just like any other field. |