1

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?

pethel
  • 5,397
  • 12
  • 55
  • 86
  • Possible duplicate except the date format - http://stackoverflow.com/questions/9394322/xslt-1-0-get-current-datetime – IndoKnight Apr 10 '13 at 10:43

2 Answers2

5

Since it's XSLT 2.0:

 format-date(current-date(), '[F]')
Michael Kay
  • 156,231
  • 11
  • 92
  • 164
2

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

Deven Patil
  • 109
  • 1
  • 6