google407ec42f1ae5ff0e.html
top of page

Automatically update the copyright year

Writer's picture: Yatendra AwanaYatendra Awana


If your website is still showing “© 2017” and it should be “© 2018” then take the opportunity to update once and have it correct forever using one of the code snippets below: Show current year in .NET

<%="&copy;" & DateTime.Now.Year %>

Show current year in ASP <% response.write ("&copy;" & Year(Now)) %>

Show current year in JavaScript

<SCRIPT LANGUAGE="JavaScript"> today=new Date(); cy=today.getFullYear(); document.write(‘&copy;’ + cy); </SCRIPT>

Show current year in PHP

1&copy; <?=date("Y") ?>

27 views0 comments

Recent Posts

See All

Comments


Facilities-:
One to one  online  / Offline Class
Individual training 
Corporate Training
E-Certificate for each course
Life time video accessible
E-Books

About us-:
Fin Computer Class
Sector 107, Noida  U.P.
M-: 9871715299
E: fincomputerclass@gmail.com
W-: www.computerclass.co.in
W-: www.it402.com
Y-:www.youtube.com/yka39

All Rights Reserved @ fin computer class     Design & Developed by Yatendra Kumar Awana

bottom of page