Days between two dates

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevin7
Forum Commoner
Posts: 96
Joined: Fri May 21, 2004 6:54 am

Days between two dates

Post by kevin7 »

how can i calculate the days between two dates?

tq
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

just days

Post by djot »

-

Hi,

just calculating the days with timestamps (time() http://www.php.net/manual/en/function.time.php) should be easy!?

($timestamp2 - $timestamp1) / (60*60*24) = amount of days.


djot

-
Post Reply