Copied to clipboard

Flag this post as spam?

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


  • Mat R 5 posts 25 karma points
    Apr 13, 2010 @ 19:39
    Mat R
    0

    umbraco.library:FormatDateTime problem

    Umbraco 4.0.3

    Repeatable Custom Content v2 Fixed

     

    I am using the repeatable custom content control v2 fixed. There are 2 properties a date picker and a textstring. The date picker stores the date in this format: 14/04/2010 00:00:00

    When I try to format this in XSLT nothing is returned. I have tested in other date formats (e.g. 04/14/2010) and they are formated properly. Here is the code from my XSLT: <xsl:value-of select="umbraco.library:FormatDateTime(./data [@alias='eventDate'], 'MM.dd.yy')"  />

    Any insight into this would be greatly appreciated!!!

    Thanks!

     

  • Mat R 5 posts 25 karma points
    Apr 13, 2010 @ 23:58
    Mat R
    0

    I should clearify.. 14/04/2010 00:00:00 will not ouput as 4/14/2010.. but if I manually put in 4/14/2010 as the input date it will format to 04.14.10.

  • Henrik Bøgelund Lavstsen 8 posts 39 karma points
    Apr 14, 2010 @ 08:42
    Henrik Bøgelund Lavstsen
    0

    I dunno if you have written the first parameter wrong. When i put in the first parameter i done use ./data just the data

    your xslt:

     <xsl:value-of select="umbraco.library:FormatDateTime(./data [@alias='eventDate'], 'MM.dd.yy')"  />

    my version:

     <xsl:value-of select="umbraco.library:FormatDateTime(data [@alias='eventDate'], 'MM.dd.yy')"  />

    i hope this helps, even tho its a minimal change

Please Sign in or register to post replies

Write your reply to:

Draft