Blog Moved: http://geekswithblogs.net/KunaalKapoor/archive/2012/05/08/how-to-decide-on-sharepoint-metadata.aspx
Tag Archives: Code Optimization
How to decide on SharePoint Metadata
Posted by Kunaal Kapoor on May 8, 2012 in Cloud Computing, Facts, InfoPath, jQuery, SharePoint, SharePoint 2010
Tags: Code Optimization, Developers help developers, Programming Algorithms, Pros and Cons, SharePoint, SharePoint 2010, SharePoint Search, Site Navigation, Web Development, WebPart
Get Current Date in a SharePoint Site without using code behind
Just include this on your master page or page layout:
<p>
<script type=”text/javascript”>
<!–
var m_names = new Array(“January”, “February”, “March”,
“April”, “May”, “June”, “July”, “August”, “September”,
“October”, “November”, “December”);
var d_names = new Array(“Sunday”,”Monday”, “Tuesday”, “Wednesday”,
“Thursday”, “Friday”, “Saturday”);
var d = new Date();
var curr_day = d.getDay();
var curr_date = d.getDate();
var curr_month = d.getMonth();
var curr_year = d.getFullYear();
document.write(d_names[curr_day] + “, ” +curr_date + ” ” + m_names[curr_month]+ ” ” + curr_year);
/* The last two lines above have
to placed on a single line */
//–>
</script>
</p>
TADAA!!!
Posted by Kunaal Kapoor on April 17, 2012 in .NET, Cloud Computing, Facts, InfoPath, jQuery, MVC, SharePoint, SharePoint 2010, World Wide Web
Tags: .NET, ASP.NET, ASP.NET best practices, Code Optimization, CSS, Developers help developers, DLL issue, Helpers, HTML, jQuery, SharePoint, SharePoint 2010, Site Navigation, Web Development, WebPart