Re: [xsl] please help with date formatting

Subject: Re: [xsl] please help with date formatting
From: "SAL ROSALES" <sal.rosales@xxxxxxxxxxx>
Date: Thu, 5 Dec 2002 15:05:54 -0800
Unfortunately, Sharepoint uses MSXML 3. Can I still do this with 3.0?

----- Original Message -----
From: "Jeff Beadle" <Jbeadle@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, December 05, 2002 2:09 PM
Subject: RE: [xsl] please help with date formatting


> If you're using msxml 4.0 you can use some of the new msxslt extensions,
> namely:  msxsl:format-date(), where
> xmlns:msxsl="urn:schemas-microsoft-com:xslt".
>
> Here's the usage:
>
>    <xsl:value-of select="msxsl:format-date( . , 'MMM dd, yyyy')"/>
>
> In your case:
>
>    <TD valign="top" align="left" class="NormalBlackLimeBG">
>       <xsl:value-of select="msxsl:format-date(
> dav:propstat/dav:prop/office:StartDate,
> 'ddd, MMM. dd')"/>
>    </TD>
>
> HTH,
> Jeff
>
>
> -----Original Message-----
> From: SAL ROSALES [mailto:sal.rosales@xxxxxxxxxxx]
> Sent: Thursday, December 05, 2002 5:22 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] please help with date formatting
>
>
> I'm just not getting this. I'm pulling a startdate value from a document
> using a vbscript query and when I output it in XSL it appears like this:
>
> 2002-12-25T12:00:00.000
>
> I need it to look like this: Wed, Dec. 25
>
> I'm going in circles, I can't get it to work using vbscript functions to
> xsl, can't use xsl to format it, I don't know what to do and its driving
me
> crazy. This particular sharepoint stylesheet uses these namespaces:
>
> <xsl:stylesheet
> xmlns:xsl="uri:xsl"
> xmlns:dav="DAV:"
> xmlns:office="urn:schemas-microsoft-com:office:office"
> xmlns:attributes="urn:schemas-microsoft-com:publishing:"
> xmlns:fulltext="urn:schemas.microsoft.com:fulltextqueryinfo:">
>
> This is my XSL code that is generating the date:
>
> <TD valign="top" align="left" class="NormalBlackLimeBG">
> <xsl:value-of select="dav:propstat/dav:prop/office:StartDate"/>
> </TD>
>
> SR
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread