Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can we know the number of days between two given dates
using PHP?

Answer Posted / richa

Something we must know about strtotime

(try putting up a date grater than 30 years)

yes it will give an unexpected output, because it uses, unix
timestamp, and thus doesnt treat a date greater than 30 yrs,
as a correct value.

Amazing but true

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the web server interprets php and interacts with the client?

966


What does php mean?

984


Tell me what is the difference between unset() and unlink()?

1092


Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?

1008


Tell us what does $_cookie means?

996


How many different types of messages available in php?

1004


What is the use of imagetypes() method?

979


What does csrf token mean?

938


Why overriding is called runtime polymorphism?

979


What is interface? Why it is used?

1037


How to parse configuration file in php?

1027


What is difference between required and require_once in php?

1080


Do you know what is use of count() function in php?

1010


When to use self over $this?

1002


Tell me how can I display text with a php script?

969