concerto / concerto-simple-rss

Simple RSS Dynamic Content for Concerto 2
Other
6 stars 2 forks source link

datetime formatting function #39

Open mfrederickson opened 10 years ago

mfrederickson commented 10 years ago

A user writes: I'm pulling content from a 1.0 rss feed using xmlns:dc="http://purl.org/dc/elements/1.1/". Is there a way to change the dc:date format from 2014-08-13T17:00:00-04:00 to something like Aug. 10 4:00 pm in xslt?

It would be a good idea to add a function similar to the fn:replace function that has the ability to read a date from any format and write it in any format. Sort of like: fn:formatdate(datevar, informat, outformat)