Get current day in week with xslt

﹥>﹥吖頭↗ 提交于 2019-12-24 09:17:31

问题


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



来源:https://stackoverflow.com/questions/15923575/get-current-day-in-week-with-xslt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!