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

RE: Date format

Subject: RE: Date format
From: "Stevenson Ngila" <Stevenson@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 May 2002 16:32:30 +0300
datadirect 32 date format
Assuming that @LastActionDate = 17-05-02
to convert it to YYYYMMDD use


20<xsl:value-of select="substring(@LastActionDate,8,2)"/><xsl:value-of
select="substring(@LastActionDate,4,2)"/>
<xsl:value-of select="substring(@LastActionDate,1,2)"/>

But if it's 17-MAY-02 you will have to assign the month MAY a variable which
assigns it to be 05.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
AXRAMAKR@xxxxxx
Sent: 30 May 2002 15:40
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx;
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Date format



I have a date 17-MAY-02 from the oracle database that I would like to
format as YYYYMMDDHR24MI and another date 117-MAY-02 to be converted to
YYYYMMDD.

I wish to do the transformation in the XSLT. Has anyone done this before
and if so how did you do it?

Thanks,

Akila


 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
  • Date format
    • AXRAMAKR - Thu, 30 May 2002 08:49:53 -0400 (EDT)
      • Ali Mutlu - Thu, 30 May 2002 09:26:10 -0400 (EDT)
      • Stevenson Ngila - Thu, 30 May 2002 09:41:12 -0400 (EDT) <=
      • <Possible follow-ups>
      • gary cor - Thu, 30 May 2002 09:27:53 -0400 (EDT)
      • AXRAMAKR - Thu, 30 May 2002 11:18:33 -0400 (EDT)
        • Ali Mutlu - Thu, 30 May 2002 11:55:38 -0400 (EDT)
      • AXRAMAKR - Thu, 30 May 2002 12:36:30 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.