Add Time/Date to Layouts or Master Page
To add this web control to your master page do the following:
- Add in the following registration to the top of the master page:
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> - Add in the the following code right below the welcome control “IdWelcome” DIV in your master page.
- Then add in some quick styles to your custom style sheet so that the time is set to white. .currenttime{
color: #FFF;
text-align: right;
font-family: Arial, sans-serif;
font-weight: normal;
font-size: 12px;
}
Comments