Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
is working on a reply...