使用 xslt 获取星期几 [英] Get current day in week with xslt
本文介绍了使用 xslt 获取星期几的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 xslt 中获取当前星期几.比如周一、周二……0,1,2 也是可以接受的.
How can i get the current day of week in xslt. Like Monday, tuesday.... 0,1,2 would also be acceptable.
如何在 XSLT 中执行此操作?
How can I do this in XSLT?
推荐答案
既然是 XSLT 2.0:
Since it's XSLT 2.0:
format-date(current-date(), '[F]')
这篇关于使用 xslt 获取星期几的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文