Answers for "php calculate months from the current date"

PHP
0

get age in months php

$interval = date_diff(date_create(), date_create('2008-01-01 10:30:00'));
echo $interval->format("You are  %Y Year, %M Months, %d Days, %H Hours, %i Minutes, %s Seconds Old");
Posted by: Guest on April-29-2021
-1

get month days in php

echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);
Posted by: Guest on October-19-2020

Code answers related to "php calculate months from the current date"

Browse Popular Code Answers by Language