I\'m working on a calendar/planner web app and I need to compare the start and end times of events before I store them in my DB. An event can only have a range of one day an
If you're running PHP 5.3, you can use the diff() method of DateTime objects to get the difference in between two dates. But it's possible to do with just timestamps too (1 day = 86400 seconds)