/ Published in: Java
Gets the current year.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.Date" %> Copyright © <%= new SimpleDateFormat("yyyy").format(new Date()) %> Your Website. All Rights Reserved.