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 to convert one date format into another in php?

873


What is input sanitization in php?

951


How many keywords are there in php?

1090


Which is better mysql or sql?

963


Explain what is the difference between session and cookie?

992


What are the main error types in php and how do they differ?

1288


Tell me how can we determine whether a variable is set?

892


What are the new features available in php 7?

964


What is the difference between == and === in php?

992


How to get no. of rows using MYSQL function?

1046


What are regular expressions in programming?

867


Explain what are psrs?

905


List data types in PHP?

972


How to read a file in binary mode?

1075


Explain the ternary conditional operator in php?

1055