Home | Quizes | Downloads | Tech Terms | Tutorials | News | Forum | Site Map | Feedback

ASP/Javascript Code Samples

Website year (eg. 1999 - xxxx)


If you want you save yourself time from going back to write your current year under page created from 2000 - xxxx, then you could use this trick.

ASP:

© Emmanuel Amenuvor 1999 - <%=year(date)%> prints.
© Emmanuel Amenuvor 1999 - 2023

Javascript: - copy and paste this in after your head tag.
<script type="text/javascript">
var cur_year=new Date();
var today = cur_year.getFullYear();
</script>
© Emmanuel Amenuvor 1999 -
I hope you found this interesting enough. If you have any suggestions, please post it to the Tech Forum or send us your Feedback

 



  
2004© Emefa Amenuvor [i][m][f][t][e][c][h] all rights reserved