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
How is it possible to parse a configuration file?
What are form input html tags?
What is a persistence cookie?
What is composer json?
Why print_r is used in php?
What is the use of @ in php?
Which is the best php framework for a beginner?
What is the role of php?
Explain the installation of PHP on UNIX systems?
What is a variable cost example?
What are the file upload settings in configuration file?
How long is session timeout?
What is the difference between $argv and $argc? Give example?
What is use of in_array() function in php?
Explain the differences between get and post methods?