how to get the year of a specific date value in php code example Example: php grab year from date $year = date("y",strtotime($mydate));