For a listing of conferences I want to show the upcoming conferences under the heading 'upcoming conferences'. The past conferences must be shown under the heading 'past conferences'.
So I try to compare the date property of the conference with the currentdate like this:
I guess I should convert the Datepicker values 'conferenceDate' and 'currentDate' to string values, only how do you convert a date to a string in Xslt?
problem comparing dates
Hi,
For a listing of conferences I want to show the upcoming conferences under the heading 'upcoming conferences'. The past conferences must be shown under the heading 'past conferences'.
So I try to compare the date property of the conference with the currentdate like this:
<xsl:when test="umbraco.library:DateGreaterThanOrEqual(conferenceDate,currentDate)">
but this generates an xslt error
Anyone knows how to solve this?
Thanks for your help,
Anthony Candaele
I forgot to mention that conferenceDate is of data type 'Date Picker'
I guess I should convert the Datepicker values 'conferenceDate' and 'currentDate' to string values, only how do you convert a date to a string in Xslt?
tried:
<xsl:when test="umbraco.library:DateGreaterThan(string(conferenceDate), string(currentDate))">
but not working either :(
well watha y'know, just tried this:
<xsl:when test="conferenceDate < currentDate">
and it works!
Or how people can make things more complicated than they are :)
is working on a reply...