JS Refreshes browser side through user time setting using JavaScript Date Object.
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>
2016
© 2010
<script type="text/javascript">
new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());
</script>
, Company.
© 2010-2016, Company.
PHP Refreshes server side through server setting.
<?php echo date("Y"); ?>
2016
© <?php
$fromYear = 2008;
$thisYear = (int)date('Y');
echo $fromYear . (($fromYear != $thisYear) ? '-' . $thisYear : '');?> Company.
© 2010-2016, Company.