<?php $time = strtotime("1 Jan 2001 1:11:11"); echo "Years since time: ".(date("Y") - date("Y", $time));