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 take a substring from a given string?

952


Does php have a future?

885


What is the difference between php4 and php5?

1010


Can I write php code in html file?

940


What is laracast?

974


How to remove blank spaces from the string?

967


How to run the interactive php shell from the command line interface?

1041


Is php closing tag necessary?

941


Does php need a closing tag?

887


How should a model be structured in mvc?

872


Differentiate between require and include?

926


Who is the father or inventor of php?

1028


Which escape sequences can be used in single quoted strings in php?

889


What is the scope of a variable defined outside a function?

976


Which is a perfect example of runtime polymorphism?

924