Developer forum

Forum » Templates » XSLT sort by date and time??

XSLT sort by date and time??

Jacob Storgaard Jensen
Reply

Hi guys,

I'm having trouble sorting a bunch of products by Ecom.Product.Created.Sortable which is formatted: 2013-10-30T12:06:09

Anyone who has the easy path to a solution here?

Right now I have <xsl:sort select="Ecom.Product.Created.Sortable" order="descending"/>


Replies

 
Mikkel Ricky
Reply

How does the sorting not work? It should work by just using xsl:sort when the dates are formatted as you mention.

Can you share a bit more of your xslt?

Best regards,
Mikkel

 

 
Jacob Storgaard Jensen
Reply
This post has been marked as an answer

Hi Mikkel, was a bit weird, I upgraded to 8.4.0.9 which removed the error... Just forgot to close this thread :-)

Votes for this answer: 1

 

You must be logged in to post in the forum