PHPBuilder: Date Manipulation in PHP

By ServerWatch Staff (Send Email)
Posted Jun 14, 2000


I was sitting writing a kind of helpdesk call management program in PHP and found that I needed to work out how much time had elapsed since somebody had last bothered to contact the client about their problem. In the past, when I used to use ASP, the solution was simple - ASP has a command called DateDiff which takes two dates and can tell you how many seconds has passed between them, how many days, months and so on. After scouring the PHP manual for a while I decided that PHP has no such beast. I then wondered how many other people there were out there like me,"I was sitting writing a kind of helpdesk call management program in PHP and found that I needed to work out how much time had elapsed since somebody had last bothered to contact the client about their problem. In the past, when I used to use ASP, the solution was simple - ASP has a command called DateDiff which takes two dates and can tell you how many seconds has passed between them, how many days, months and so on. After scouring the PHP manual for a while I decided that PHP has no such beast. I then wondered how many other people there were out there like me, and thus this tutorial."

Page 1 of 1


Comment and Contribute

Your name/nickname

Your email

(Maximum characters: 1200). You have characters left.