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 / rameshfromind

There is one function for gregoriantojd that means convert
to gregorian calendar date to julian date count.

Below the example for counting days between two date.

<?
$startDate = '01-01-2008' // mm-dd-yyyy/yy
$endDate = '01-30-2008' // mm-dd-yyyy/yy
echo gregoriantojd($endDate) - $gregoriantojd($startDate);
?

// OUTPUT

29

Is This Answer Correct ?    9 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to open a file for reading?

1025


How be the result set of mysql handled in php?

1150


Define urlencode() and urldecode() used in php?

1191


What is the difference between rest and soap?

1144


What php framework does wordpress use?

1025


What is php stack?

961


Why does php start with variables?

1012


Can we use session in mvc?

998


How to check your php installation?

1007


What is the difference between Session and Cookie?

1065


A process can run only in the background. State Whether True or False?

1126


What are the functions of string?

990


What is abstract class php?

938


How to write a program to make chess?

1043


What is the best way to test the strpos() return value in php?

983