get only year from date obkect php code example Example: php grab year from date $year = date("y",strtotime($mydate));