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 do I install php and apache on windows 10?

1061


What is the use of "enctype" attribute in a html form?

1030


Is laravel easy to learn?

954


How to redirect a url from http to https in .htaccess?

978


Can we use php variable in javascript?

1007


Which function would you use to read a line of data from a file in php?

1013


What is good average session duration?

1017


Explain do you use composer? If yes, what benefits have you found in it?

961


Tell me what is the default session time in php?

980


Php says that an array is an ordered map. But how the values are ordered in an array?

1043


Tell me what is htaccess?

916


When sessions ends?

952


What is php ci?

978


How arrays are used in php?

1049


Explain me is multiple inheritance supported in php?

1060