Determine number of weeks between two dates - XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all,
I need to be able to determine the number of weeks that are between two dates in XSLT. I have the dates in the following format...
2008-01-01T00:00:00Z<br/>
2008-12-31T00:00:00Z<br/>
(note: the year can come from different years).
Does anyone have a standard XSLT 1.0 template that already performs this function? I would be very grateful. From google I can see templates that return a week number from two dates, but nothing comes up for determining the amount of weeks between two given
dates.
Thanks inadvance. <hr class="sig Tryst

View the full article
 
Back
Top