Happy echo date(‘Y’)

It’s at times like these that I am very happy I declare copyright notices on the sites I manage using the php method for echoing the year.

Copyright © 

Saves a lot of time and panic after noticing a site you built years ago looks somewhat out of date.

Update: via Maarten Jacobs (@MaartenJJ) it’s a good idea to set the timezone to ensure it displays correctly for the users location via date_default_ timezone_set(). Thanks Maarten

2026 2025 2024 2023 2022 2021 2020 2019 2017 2016 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004