https://secure.php.net/manual/en/function.date.php. Php DateTime To display current year is very easy and simple in PHP. You can use any one of the following method SOLUTION 1. Use the format character “Y”(Capital letter) in the date() function to display the current year. This program states whether a year is leap year or not from the specified range of years (1991 - 2016). This happens because the strtotime() function will fill in missing parts from the current day. The year can only be hard-coded. PHP serves us with predefined functions for these tasks. This following codebyte generates a simple select box, with an