I want to parse a year into a date format, but it returns still the current year:
$year = $_GET['year']; // p.e. 2020
$start = date ('Y-01-01', strtotime ("$year")); // returns 2023-01-01
$stop = date ('Y-12-31', strtotime ("$year")); // returns 2023-12-31
How get I fix this so it returns 2020-01-01 and 2020-12-31?
So many thanks!