CodeHQ

Posts Tagged ‘Year’

|

Show current year with PHP (copyright)

Wednesday, January 6th, 2016

Add this code to your website to show the current year e.g. 2016. Can be used to always show the current year in the date format in a copyright statement.

<?php echo date("Y") ?>

Tags: , , , ,
Posted in PHP | No Comments »