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

date formating

Subject: date formating
From: Samina Islam <samnaz123@xxxxxxxxx>
Date: Thu, 16 Aug 2001 11:48:56 -0700 (PDT)
java reformat date
Hi

I have asked this question before and Jeni gave me a
solution using only XSL.  I realize now that it might
be better to do it with java and extensions. So any
other suggestions on how to do this would be helpful. 
Someone previous had mentioned using java or java
script.  How can I do this using java/javascript?

So again this is what I want to do.

I'm converting an xml document to a prism document
using a stylesheet.  One of the elements in the XML
document is date, which is given in "MM DD 
YYYY h:mm" format (example: "Jul 10 1999 9:10AM").  I
want the date to be formated w/ the year first (ex:
"1999-07-10 T9:10 TZD" ).

I'm passing an XML document for the XSL stylesheet to
use. here is what part of it looks like: 
 <?xml version="1.0" encoding="iso-8859-1" ?>
     <moreovernews> 
         <article id="_22161643"> 
               <url><http://c.moreover.com></url>
             
<document_url><http://www.mo.com></document_url>
             <harvest_time>Jul 20 2001
2:13PM</harvest_time> 
             <access_registration /> 
       </article> 
... and so on.

the harvest_time is what I want to reformat.  what do
I need to do inorder to get my stylesheet to reformat
the date?  I want to use java or java script  (not
solely XSL).

thanks!

Samina

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

 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.