How to parse string to date in xslt 2.0 -
is possible convert strings 30042013
(30 april 2013) date format?
so can use later in functions format-date
fn:datetime($arg1 xs:date?, $arg2 xs:time?)
convert arguments xs:datetime
.
just use fn:substring()
, fn:concat()
cut out relevant parts , join them yyyy-mm-dd
before passing fn:datetime
.
Comments
Post a Comment