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

Re: Date format

Subject: Re: Date format
From: Rick Taylor <taylor@xxxxxxxx>
Date: Fri, 22 Aug 2003 12:09:13 -0600
xsl date format
Depending on what database you have and how you are extracting the data into XML, you could format the date when you query the database. Alternatively, you could extract just the portion you need form the XML "YYYY-MM-DD" by modifying your select to:

<xsl:value-of select="substring-before(the_date, ' ')"/>

rick


At 07:07 PM 8/22/03 +0200, you wrote:
hello from one database i get the date format with this:
<xsl:value-of select="the_date"/> (the_date is the field nakme in the xml
tree)
 and appears in this format:  2003-08-22 18:32:05

but i want to writte int this format: 2003-08-23

how can i make it?
can you help me? thanks



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Rick Taylor XML Developer PPDM Association


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

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.