Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #age #months #php
ADD COMMENT
Topic
Name
4+5 =