How to display the current year in Razor and in Umbraco 7 @DateTime.Now.Year For example: <p>Copyright © @DateTime.Now.Year </p> I use this on a lot of my umbraco websites for keeping the copyright up to date. You can see an example of this on the footer of my most recent Umbraco website design at: http://www.markdevelopment.co.uk/portfolio/abercromby-heating-and-plumbing-services/
Mark Downie - Umbraco 7 and Umbraco 8 (and umbraco 4) Developer - Code Snippets - Glasgow - Scotland
I am Mark Downie a web developer who uses the Umbraco CMS. You can see examples of my Umbraco web sites at: http://www.markdevelopment.co.uk If you have any questions, please contact me. Thanks