difference between 2 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
podarum
Forum Commoner
Posts: 51
Joined: Mon Jun 15, 2009 1:36 pm

difference between 2 dates

Post by podarum »

Hi, I have 2 dates $date1 and $date2 from a form. I want to compute the difference between these 2 dates in months. Anyone know how? Thanks
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: difference between 2 dates

Post by Eric! »

I posted some functions in this thread that you can probably use. It is about 3-4 messages from the top.
viewtopic.php?f=1&t=102259
Post Reply