I have to admit that having not even tried to code this myself this question may be a annoying to some but I\'m very surprised that I wasn\'t able to find a good example on
first you'll need to calculate the difference in seconds using time() and strtotime(). Then you can translate those seconds into days/hours/minutes/seconds.