xsl-list
[Top] [All Lists]

Re: [xsl] XSL: Format date

2007-09-29 13:35:21
try this if you are stuck to XSLT 1.0

translate('CD/AB/EFGH', 'ABXCDYEFGH', first/date)

Xmlizer
On 9/28/07, Chaudhary, Harsh <HCHAUDHA(_at_)amfam(_dot_)com> wrote:
Hi,

I am sure this has been discussed to death but I have not been able to
find a good source of info on it.

I have an xml:

<first>
       <date>31.12.2006</date>
</first>

I would like to convert it to 12/31/2006.

Is there any built in function for this or is string formatting the way
to go?

Thanks,
HC.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>