xsl-list
[Top] [All Lists]

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

2014-10-28 15:39:10

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

Michael Kay
Saxonica
mike(_at_)saxonica(_dot_)com
+44 (0) 118 946 5893




On 28 Oct 2014, at 20:11, Catherine Wilbur cwilbur(_at_)uwindsor(_dot_)ca 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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(_at_)uwindsor(_dot_)ca 
www.uwindsor.ca/its
XSL-List info and archive
EasyUnsubscribe (by email)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>