Add Today's Date to SharePoint Master Page
Posted
by soniiic
on Stack Overflow
See other posts from Stack Overflow
or by soniiic
Published on 2010-03-29T14:42:06Z
Indexed on
2010/03/29
14:43 UTC
Read the original article
Hit count: 434
Surely there must be a simple way of putting a simple code block into a master page :( I've tried using the obvious <%= "Hello, World!" %>
syntax but code blocks aren't allowed. Then tried a site column, but don't know how to use them. Then tried web zones but master pages can't use them. Tried putting a web part (which are super difficult to make and deploy btw) into the page layout, but it just doesn't render :/
All I want is something nice and simple at the top of my site which shows today's date and the format I want to use is DateTime.Today.ToString("ddd, d MMMM yyyy")
(Otherwise I'm resorting to javascript document.write!)
Thanks all,
© Stack Overflow or respective owner