[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How do I define a work variable in XSL with the current date and how do I format date in output


Subject: Re: [xsl] How do I define a work variable in XSL with the current date and how do I format date in output
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Oct 2014 20:39:05 -0000

select="format-date(current-date(), "[Y0001][M01][D01]")

Michael Kay
Saxonica
mike@xxxxxxxxxxxx
+44 (0) 118 946 5893




On 28 Oct 2014, at 20:11, Catherine Wilbur cwilbur@xxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> How do I define a work variable (GLDate) to contain the current date in
format yyyymmdd?
>
> <xsl:variable name="GLDateValue" select="current-date()"/>
>
> How do I code the following line to put my GLDate in my output - want to
format it in output as YYYYMMDD?
>          <xsl:value-of select="$GLDateValue" />,
>
> _____________________________________________________________________
> Catherine Wilbur  |  Senior Application Programmer  |  IT Services
> 401 Sunset Avenue, Windsor ON Canada  N9B 3P4
> (T) 519.253.3000 Ext. 2745  |  (F) 519.973.7083  |  (E) cwilbur@xxxxxxxxxxx
> www.uwindsor.ca/its
> XSL-List info and archive
> EasyUnsubscribe (by email)


Current Thread