Sunday, July 21, 2013

How to display the System Timestamp in XSLT ?



Use the following function to display System Time in XSL with desired format.

<xsl:value-of select="xp20:format-dateTime(xp20:current-dateTime(),'[D01]/[M01]/[Y0001]')"/> - gives the System Date


<xsl:value-of select="xp20:format-dateTime(xp20:current-dateTime(),'  [H01]:[m01]')"/> - gives the System Time

The above XSL functions will display Date Time in the foll. format: 04/10/2009 11:16

No comments:

Post a Comment