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

$a= gregoriantojd(1,30,2009);
$b= gregoriantojd(1,5,2009);
echo $a-$b;

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does session start do in php?

935


Tell me what are the different types of errors in php?

946


Are objects passed by value or by reference?

949


How to select a database?

985


Tell me what are the functions to be used to get the image's properties (size, width and height)?

1000


What is the difference between echo, print and printf()?

980


Why do we use polymorphism in php?

981


How can we set and destroy the cookie in php?

935


Which is variable cost?

919


How to open a file in php?

1049


Tell me what's the difference between include and require?

962


What is is_null() in php?

1024


How do I use isdigit function?

1016


What is faster?

976


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1877