Copied to clipboard

Flag this post as spam?

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


  • Johan Plesner Hamann 105 posts 199 karma points
    Jun 03, 2011 @ 01:11
    Johan Plesner Hamann
    0

    String was not recognized as a valid DateTime

    Hey guys

    Getting a strange error on, in a for-each.

    <xsl:value-of select="umbraco.library:DateGreaterThanToday(./nyhedDatofra)"/>

    System.FormatException: String was not recognized as a valid DateTime. 
    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) 
    at umbraco.library.DateGreaterThanToday(String firstDate)

    I have tested the possibilities and this is good

    <xsl:value-of select="umbraco.library:DateGreaterThanToday(umbraco.library:GetXmlNodeById(1116)/nyhedDatofra)"/>

    and this is bad

     

    <xsl:value-of select="umbraco.library:DateGreaterThanToday(umbraco.library:GetXmlNodeById($id)/nyhedDatofra)"/>


    Hope you can help.

    Thanks
    /Johan


Please Sign in or register to post replies

Write your reply to:

Draft