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

Is there any way to identify the date format ?

Subject: Is there any way to identify the date format ?
From: jayashree venkatesh <jaya.venk@xxxxxxxxx>
Date: Tue, 8 Jan 2008 23:12:52 -0800 (PST)
 Is there any way to identify the date format ?
Hello,
   
      I am a newbie to XSL . I have 2 XML feeds which have a pubdate
tag having different date formats . One uses the standard RFC 822 format and
the other non RFC 822 format.

1 st feed 
-----------------
<pubDate>Mon, 07 Jan 2008 15:24:04 -0600</pubDate>    (RFC 822) 

2 nd feed 
--------------------
<pubDate>March 7, 2007</pubDate>

I
want to convert both these date formats to ISO 8601 format.The point is
i want to do this in a single XSL file . I know there are substring()
and concat() functions which can help me achieve this. Now my question
is, how can I identify which format the date is ( 1st format or 2 nd )
in the first place ? If i can identify which format the date is in, I
can covert them to ISO 8601 format.

Thanks in
 advance,
Jayashree Venkatesh



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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.