xsl format string/date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • renoua
    New Member
    • Jun 2010
    • 11

    #1

    xsl format string/date

    Hello,
    I have a date here:

    Code:
    <xsl:value-of select=" bioghist/bioghist/chronlist/chronitem/date"/>
    and it has this format:ddmmyyyy

    I would like to add slashes and make it look like this dd/mm/yyyy

    How can I do this?
    Have I got to use xpath functions?

    thnx in advance :)
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I don’t know, whether there are posibilities besides XPath functions, but that’s what I would try. you’ll especially need the substring() and concat() functions.

    Comment

    Working...