Home > PHP > How to find out the difference between two given dates – PHP

How to find out the difference between two given dates – PHP

<?php
 $startDate=explode("-", "02-08-2010");
 $endDate=explode("-", "26-04-2007");
 echo gregoriantojd($startDate[1], $startDate[0], $startDate[2])
     -  gregoriantojd($endDate[1], $endDate[0], $endDate[2]);
 //1194
?>
EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: ,
  1. January 24th, 2013 at 16:28 | #1

    Hey I know this is off topic but I was wondering if you knew of any widgets I could
    add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  2. February 4th, 2013 at 18:36 | #2

    I simply couldn’t leave your web site prior to suggesting that I actually loved the usual information an individual supply on your guests? Is going to be again ceaselessly in order to check up on new posts

  3. February 5th, 2013 at 17:54 | #3

    Hi there! Do you use Twitter? I’d like to follow you if that would be okay. I’m absolutely
    enjoying your blog and look forward to new posts.

  4. February 6th, 2013 at 22:47 | #4

    Very nice article, just what I wanted to find.

  5. February 10th, 2013 at 07:27 | #5

    I think this is one of the most significant info for me. And i am
    satisfied reading your article. But should observation on few common issues,
    The website style is great, the articles is really nice : D.
    Excellent process, cheers

  6. February 14th, 2013 at 19:08 | #6

    Great post! We will be linking to this great article on our website.
    Keep up the great writing.

  7. February 17th, 2013 at 20:12 | #7

    I’m really enjoying the design and layout of your website. It’s a very
    easy on the eyes which makes it much more enjoyable for me
    to come here and visit more often. Did you hire out a designer
    to create your theme? Excellent work!

  8. February 18th, 2013 at 12:25 | #8

    I’m truly enjoying the design and layout of your website. It’s a very easy on the eyes which
    makes it much more enjoyable for me to come here and visit more often.
    Did you hire out a developer to create your theme?

    Exceptional work!

  9. February 18th, 2013 at 17:31 | #9

    Amazing blog! Do you have any tips for aspiring writers?

    I’m planning to start my own website soon but I’m a little lost on everything.
    Would you recommend starting with a free platform like WordPress or go for a paid option?
    There are so many choices out there that I’m totally confused .. Any ideas? Thank you!

  10. February 23rd, 2013 at 13:03 | #10

    hello!,I really like your writing so much! percentage we keep in touch
    more approximately your post on AOL? I need an expert
    in this space to unravel my problem. Maybe that is you!
    Looking ahead to see you.

  11. February 25th, 2013 at 13:03 | #11

    Wow, amazing blog layout! How long have you been blogging
    for? you make blogging look easy. The overall look
    of your website is magnificent, as well as the content!

  12. February 26th, 2013 at 01:58 | #12

    You made some decent points there. I looked on the net to learn more about the issue and found most people will go along with your views on this website.

  13. February 26th, 2013 at 06:56 | #13

    Real fantastic info can be found on site . “The greatest mistake is trying to be more agreeable than you can be.” by Walter Bagehot.

  14. March 4th, 2013 at 02:50 | #14

    I enjoy what you guys are usually up too. Such
    clever work and coverage! Keep up the great works guys I’ve added you guys to blogroll.

  1. No trackbacks yet.
You must be logged in to post a comment.

Switch to our mobile site