Categories
PHP 5 Zend Framework 1.12

New Year, New Dates on your Copyright Footer of your Website

It’s a New Year

That means Instead of Saying 2014 on the bottom of your website it says 2014.

copyright (c) 2013 Mysite.co.za

Well here’s how to make that line dynamic so you need not change it again

Zend:

<?php
$date = new Zend_Date();
echo $date->get(Zend_Date::YEAR);
?>

PHP:

echo date("Y");