Re: [xsl] Actual Date

Subject: Re: [xsl] Actual Date
From: Alan Gardner <scipiomedia@xxxxxxxxxxx>
Date: Wed, 28 May 2003 08:53:10 -0600
Your could use the following which uses the date:date-time extention from See their site for documentation and which version of processors
you need to run it (

<xsl:stylesheet version="1.0"
    <xsl:output method="html" indent="yes"/>

<xsl:template match="/">
    <xsl:variable name="now" select="date:date-time()"/>
      <xsl:text>Current date and time: </xsl:text>
      <xsl:value-of select="date:month-name($now)"/>
      <xsl:text> </xsl:text>
      <xsl:value-of select="date:day-in-month($now)"/>
      <xsl:text>, </xsl:text>
      <xsl:value-of select="date:year($now)"/>
      <xsl:text> </xsl:text>
      <xsl:value-of select="date:hour-in-day($now)"/>
      <xsl:value-of select="date:minute-in-hour($now)"/>
      <xsl:value-of select="date:second-in-minute($now)"/>

On 5/28/03 5:58 AM, "Molnár Ágnes" <agi@xxxxxxxxxxxxxxxxx> wrote:

> Hello again,
> Can I insert to a HTML code the actual date (ex. 28-05-2003) from XSL?
> Thanks,
> Agnes
>> Molnár Ágnes
>> E-mail: agi@xxxxxxxxxxxxxxxxx
>> Tel.: +36-20-212-8493
>> Icq:  167290967

 XSL-List info and archive:

Current Thread