Posted By

vagrantradio on 05/05/12


Tagged


Versions (?)

Java Get Year for Footer/Copyright


 / Published in: Java
 

Gets the current year.

  1. <%@ page import="java.text.SimpleDateFormat" %>
  2. <%@ page import="java.util.Date" %>
  3.  
  4. Copyright &copy <%= new SimpleDateFormat("yyyy").format(new Date()) %> Your Website. All Rights Reserved.

Report this snippet  

You need to login to post a comment.