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 are the different loops in php?

1059


What are the advantages of using php?

962


How to split a string into array using php?

1156


Can I learn php without knowing c?

997


What is the difference between $message and $$message in php?

997


List functions available to sort an php array?

944


Where sessions stored in PHP?

980


what is benefit of magento?

2531


How do you remove duplicates from an array?

1044


What is the maximum size of a database in mysql?

993


Does php use html?

974


How to retrieve the original query string?

1067


If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

952


Explain what does $_files means?

1111


How would you determine the size of a file in php?

1040