Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2006, 07:20 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 131
Thanks: 10
Thanked 0 Times in 0 Posts
Default String to Time conversion

Hi,

XSLT 1.0

I need to convert a string (i.e. '32479') into a TIME format of Hours & Minutes (09:01).

Are there any xsl functions that anyone knows of, that can help....
like....
xPath format-number($strName, 'hh:mm')....?

Or do I have to resort to a script (i.e. JavaScript)?

Please can you provide an example, if possible?

Thanks,


Neal

A Northern Soul
__________________
Neal

A Northern Soul
 
Old March 1st, 2006, 07:51 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Take a look at the date and time functions in EXSLT - there might be something suitable.

www.exslt.org

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
numeric to string conversion dowens VBScript 1 May 25th, 2007 04:11 PM
string character conversion Neal XSLT 2 February 23rd, 2006 08:23 AM
String To Time Conversion? SABmore VB.NET 2002/2003 Basics 1 February 15th, 2006 09:04 PM
Conversion from string to date kshantik Access 2 May 19th, 2004 12:17 PM
String to Double conversion mkpriya VS.NET 2002/2003 3 October 21st, 2003 05:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.