locked
compare dates in display item form xslt filtering RRS feed

  • Question

  • am using a calendar were i am making the number of the day hyperlinked, once it is clicked the Start date of this event is sent in query string like that "8/11/2012 9:00:00 PM", in the sharepoint designer i made a parameter that receives that value, then when i go to the xslt filtering to compare that parameter with the start date column value like that "[@EventDate = $QstringDate]" it always return nothing! how can i compare the two dates in xslt ? 
    Wednesday, August 15, 2012 9:36 AM

Answers

  • [number(ddwrt:FormatDateTime(ddwrt:FormatDate(string(@EventDate),1033,1),

    1033,'yyyyMMdd'))=number(ddwrt:FormatDateTime(ddwrt:FormatDate(string($QsDate),

    1033,1),1033,'yyyyMMdd'))]

    • Marked as answer by Omar Fathallah Wednesday, August 15, 2012 3:28 PM
    Wednesday, August 15, 2012 3:27 PM