Amit Bhagat

A dedicated SharePoint guy

Pages

  • Home
  • Hire me
  • Resume

Saturday, January 18, 2014

SharePoint 2013 - ItemStyle.xsl - How to get today's date

I was wondering how I can get today's date to use in customization of ItemStyle.xsl, here it is:

Put it in a variable:
<xsl:variable name="TodayDate" select="ddwrt:Today()"/>

Another example to create a span tag:
<span class="todaydate">
<xsl:value-of select="ddwrt:Today()"/>




Posted by Unknown at Saturday, January 18, 2014
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: Branding, CQWP, SharePoint 2013

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2016 (2)
    • ►  June (2)
  • ►  2015 (1)
    • ►  April (1)
  • ▼  2014 (22)
    • ►  October (1)
    • ►  July (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (10)
    • ▼  January (7)
      • Office 365 SharePoint 2013 - Blog Customization - ...
      • Office 365 SharePoint 2013 Public Site - Allow Ano...
      • SharePoint 2013 Left Navigation Gets Hidden When U...
      • SharePoint 2013 oData query _ModerationStatus field
      • ItemStyle.xsl - Clickable Title Showing Default Vi...
      • SharePoint 2013 CQWP ItemStyle.xsl - Match today's...
      • SharePoint 2013 - ItemStyle.xsl - How to get today...
  • ►  2013 (6)
    • ►  August (1)
    • ►  July (1)
    • ►  June (3)
    • ►  May (1)
  • ►  2012 (3)
    • ►  October (2)
    • ►  February (1)
  • ►  2011 (3)
    • ►  December (1)
    • ►  November (2)

About Me

Unknown
View my complete profile
Simple theme. Powered by Blogger.