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 is the difference between explode () and split () functions in php?

1105


Can we override magic methods in php?

999


What version of php do I have windows?

929


What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?

1104


What can php do?

1003


How to convert a string to uppercase in php?

1038


Are php session secure?

1035


What is a php certification?

982


How to open a file for writing?

1053


Why do we use session?

999


What is is_null() in php?

1051


How do you use bcrypt for hashing passwords in php?

1049


Is php closing tag necessary?

997


Why json is used in php?

982


Explain me how failures in execution are handled with include() and require() functions?

1017