Get current day in week with xslt

2019-08-08 08:26发布

问题:

How can i get the current day of week in xslt. Like Monday, tuesday.... 0,1,2 would also be acceptable.

How can I do this in XSLT?

回答1:

Since it's XSLT 2.0:

 format-date(current-date(), '[F]')


回答2:

Have a look at link,this may help you http://www.xsltfunctions.com/xsl/functx_day-of-week.html



标签: xslt xslt-2.0