How can we know the number of days between two given dates
using PHP?
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 ? | 5 Yes | 2 No |
Post New Answer View All Answers
Explain mysql_error().
What is php destruct?
Tell me what is mean by an associative array?
What are php expressions?
What backslash character will match whitespace?
What is php full form?
Why do we use namespace in php?
Is python better than php?
What is the difference between associative array and indexed array?
How can we know the total number of elements of Array?
What is the actually used php version?
Why and where do we use htaccess?
Tell me what is htaccess?
What are the three classes of errors that can occur in php?
How to do single and multi line comment in php?