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
?>

14 thoughts on “How to find out the difference between two given dates – PHP”

  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. 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. 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

  4. 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!

  5. 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!

  6. 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!

  7. 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.

  8. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>