Gets the current year.

Source Code : 
<%@ page import="java.text.SimpleDateFormat" %>
<%@ 
page import="java.util.Date" %>
 

[Login or Register to remove this advertisement]

Copyright &copy <%= new SimpleDateFormat("yyyy").format(new Date()) %> Your WebsiteAll Rights Reserved
Xcode Reviewed by Xcode on . Java Get Year for Footer/Copyright Gets the current year. <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.Date" %> Copyright &copy <%= new SimpleDateFormat("yyyy").format(new Date()) %> Your Website. All Rights Reserved. Rating: 5