[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Actual Date

Subject: Re: Actual Date
From: Alan Gardner <scipiomedia@xxxxxxxxxxx>
Date: Wed, 28 May 2003 08:53:10 -0600
actual date
Your could use the following which uses the date:date-time extention from
exslt.org. See their site for documentation and which version of processors
you need to run it (http://www.exslt.org/date/functions/time/date.time.html)

<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:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.