Monday, December 28, 2015

A new year brings a dynamically updated year.

A new year is approaching :



How to change the year dynamically without updating the website ?


On a PHP website you can use this :

 <?php echo date('Y'); ?>


On an HTML website or a Blogger website you can use this :

 <script type='text/javascript'>var n=new Date();document.write(n.getFullYear());</script>