Hi all,
Input:
<data>
<date>2008-11-04</date>
</data>
Output:
"Nov 2008"
I can concatenate the xs:string of the date element with "T00:00:00" to
create an xs:dateTime type which I can then pass to xdmp:strftime, like
such:
let $data := <data><date>2008-11-04</date></data>
return
xdmp:strftime("%b %Y",
xs:dateTime(concat(string($data/date), "T00:00:00"))
)
This seems pretty ugly, and the concat is kind of a hack. Is there a
more reasonable way to handle this?
Eric
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general