Yeah using XSLT like that is a bit of a mine field, best to drop down to .net (via the Extensions mentioned above is a nice easy way to do it) and let it handle it, it does a much finer job.
Remember XSLT is a templating language not a programming one and all should be fine :)
Testing a string for a valid date in Xslt
How can I do that?
Cheers
One fun thing to try would be umbraco.library:FormatDateTime - if you get 1-1-1900 then it's not a valid date.
Works good enough, thanks!
Yeah using XSLT like that is a bit of a mine field, best to drop down to .net (via the Extensions mentioned above is a nice easy way to do it) and let it handle it, it does a much finer job.
Remember XSLT is a templating language not a programming one and all should be fine :)
Peter, yes, only I have some old sins I need to take care of before I get the time to port them to .net or Py.
is working on a reply...