Copyright Date in ASP.NET
March 15, 2008
Almost any developer encounter a task, where he need to make copyright string like that: ”© 2003—2008 Somecompany”. It is obviously, that you can manually code it annually. But there is more simple solution:
© 2003 — <%= DateTime.Now.Year> Somecompany
This code will produce result like ”© 2003—xxxx Somecompany”, where xxxx is the server’s year. Make sure, that server time is ok.