$date = new DateTime("1990-09-22 17:34:01");
$now = new DateTime();
echo $date->diff($now)->format("%y Year %m month %d days, %h hours and %i minuts");
$now = new DateTime();
echo $date->diff($now)->format("%y Year %m month %d days, %h hours and %i minuts");
No comments:
Post a Comment