Re: datepart ?



or you may simply write
$yr = date("Y", $timestamp);

.