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
What is move_uploaded_file in php?
What is php mainly used for?
Is it more secure to use cookies to transfer session ids?
How escape single quotes php?
Do you know what are traits?
What are regular expressions in programming?
What is a php certification?
Explain the importance of the function htmlentities.
What advance thing in php7?
Which function(s) in PHP computes the difference of arrays?
What is php full form?
Explain whether it is possible to share a single instance of a memcache between multiple php projects?
What is a stored procedure in mysql?
Where is my php ini file?
Is rent a variable cost?