What is the best (date format independent way) in PHP to calculate difference in days between two dates in specified format.
I tried the following function:
gregoriantojd() gives the same results as using strtotime(), see this blogpost for how to do it:
http://www.phpro.org/examples/Calculate-Age-With-PHP.html