Help please can anyone advise how I get current date, or today method in xslt 1.o SharePoint
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
|
I'm not sure if XSLT 1.0 have today's date method. However, XSLT 2.0 has an equivalent Have you tried? ddwrt:Today()
ddwrt:TodayIso()
|
|||||
|
|
When you add a DVWP to the page in SharePoint Designer, SPD defined a variable which contains the current date for you in the ParameterBindings section:
Be sure to declare Today as a param at the top of the stylesheet:
Then you can use $Today however you need it. The ddwrt:Today() function is also useful, but there's no real need for it when SPD is already handing you the value. |
|||||||
|