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 does type casting mean in php? Explain with an example?

980


What's the output of the ucwords function in this example?

1049


Why do we use php?

962


How php statement is different from php script?

999


What is a simple php method to make a cross domain data request?

1027


what are the differences between php and perl

2049


Why are sessions used?

960


How to get the total number of values in an array?

1011


Explain what does $_files means?

1142


What does it mean when it says the csrf token is invalid?

905


When is a conditional statement ended with endif?

983


What are Routines?

2230


What are the rules to declare a php variables?

1160


How to create a text file in PHP?

1128


Can you explain, when to use if-else if-else over switch statements?

1014