xsl-list
[Top] [All Lists]

Re: Date formatting in XSLT ?

2004-03-03 10:02:22

xslt1 doesn't have built in date functions but of course the answer to

  is that is it possible to convert a
 java-type time in milliseconds since 1970? 

is "yes" as that's just some arithmetic, some people must have done that
arithmetic already, and google suggests you could use

http://www.exslt.org/date/functions/add/date.add.html

you just want to add the milliseconds (expressed as a duration in
seconds) to a string representing 1970 and then you'll get a string
representing teh resulting date.


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



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