Subject:date format Author:Minollo I. Date:02 Mar 2006 09:35 AM
Diana,
you can find some date/time manipulation utilities on http://www.exslt.org/date/index.html; if those don't help you, you can either try to manually split/manipulate the date from XSLT (substring), or you can write an extension function (Java or VB/JScript depending on the processor you are targeting) to help you doing that.
Subject:date format Author:Mike DiRenzo Date:08 Mar 2006 04:16 PM
Diania:
If you are using IE that supports .NET, you can use a user-defined-function. This function can be called via a name-space prefix that you define. In this example, I use a date-time format that you described. I pass this in to a template function. The template function calls the c# function which formats the date value accordingly. Moreover, you can make the template more functional by allowing other parameters. For example, currently it only converts a valid date-time value to a shortdate. What if I wanted something else like ISO-8601 format? I can either create another template function or add additional parameter tothe exisiting template function which I can test. Depending on the test results, I can branch within the template function using a xsl:choose construct and execute other functions.