Rank: Newbie
Joined: 12/18/2017 Posts: 4
|
Hi, I have a change to do wherein I need the day of the date that is being entered as a integer where a Monday would be 1 and neding with Sunday as 7.
I am using xslt verison 1.0.
Example - date is in format mm-dd-yyyy. consider date as 12-18-2017.
The day is Monday and hence the result should be 1.
any help is appreciated
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 558
|
The XSLT Standard Library offers a calculate-day-of-the-week function you could use. XSLT 1.0 offers no standard way to access the current date, however, so you'll have to search the web to find a method suitable to your environment, or make the system generating the XML upon which the XSLT 1.0 will operate include the current date in the XML.
Far better it would be simply to migrate to XSLT 2.0. There's always a way.
|