Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • René 327 posts 852 karma points
    Jan 30, 2014 @ 14:32
    René
    0

    XSLT Transformed email - Date format

    Hi 

    Umbraco Contour version 3.0.17

    umbraco v 4.11.10

    I have a form with a datepicker.  

    To send through a aslt transformed email, i use this to get the value.

    <xsl:value-of select="$records//fields/child::* [caption[1] = 'Date']//value"/>

    I get this value: 1/1/2014 12:00:00 AM

    I only want to get it to show: 1/1/2014

    I have tryed a lot with something like this, but i cant see to get it right.. 

    <xsl:value-of select="$records//fields/child::*([caption[1] = 'Date']//value, 'dd\/MM\/yyyy')"/>

     

  • René 327 posts 852 karma points
    Jan 30, 2014 @ 15:21
    René
    0

    Hi

    I can answer my question my self :-)

    <xsl:value-of select="umbraco.library:FormatDateTime($records//fields/child::* [caption[1] = 'Date']//value, 'd MMMM, yyyy')"/>
Please Sign in or register to post replies

Write your reply to:

Draft