How to calculate number of days, months and years between two dates using php code?
|
Rate this page :
|
[ 0 votes]
|
This php code can be used to calculate number of days, months and years between two given dates. Here, diff_dates($date1,$date2) function is used to calculate difference between two days.