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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.