20040101 Thursday January 01, 2004

Happy New Year = Update your copyright notices Happy New Year y'all!! Don't forget to change those copyright notices... ;-) Posted in Roller at Jan 01 2004, 12:00:01 AM MST 1 Comment

Comments:

Well it's an age old thing isn't it.
import java.util.Date;

public class yearthing {
	public int getCopyrightYear() {
		Date now = new Date();
		return now.getYear()+1900;
	}
}
Covers a multitude of JDK's (deprecated in some, I know) but keep it in mind when carefully crafting your footer.jsp file :) As for the start date, I assume that everyone externalises their strings.... Regards and happy new year Jase

Posted by Jason Bell on January 01, 2004 at 07:39 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud