5 Replies Latest reply on Dec 15, 2010 4:01 PM by 583399

    OSB - current-DateTime

    583399
      I am currently trying to set a current-DateTime, and have found that XSLT 2.0 is not supported.

      I have resorted to using Java, but have a problem. Here is my XSLT:


      <xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('yyyy-MM-ddTHH:mm:ss'), java:java.util.Date.new())" />

      This breaks, because the 'T' denoting the time starting breaks the SimpleDateFormat. Trying to set apostrophes or &apos; around the T break the XSLT.

      Has anyone else found a clean way of getting current-DateTime in the OSB?