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

write code to find the date difference b/w two given date
using PHP not MYSQL function?

Answer Posted / vipul dalwala

$noofdays = ceil(((strtotime($endDate) - strtotime
($startDate)) / (60*60*24)))

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a php certification?

961


How to create an array from php string?

1008


Which is not a file-related function in php?

1016


Tell me how is it possible to parse a configuration file?

911


List the different types of print functions available in php?

894


What are html entities?

913


Do you know how to enable error reporting in php?

933


What is session expiry?

926


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

893


Which is true about the singleton design pattern?

912


What is the purpose of pear in php?

984


Does php 7 support multiple inheritance?

960


What is lazy loading in php?

930


What is difference between action hook and filter hook?

857


Does php 5 support exceptions?

1085