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 11th, 2013, 10:31 AM
Registered User
Join Date: Nov 2012
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default XSLT: Date and Time concat

In my input xml I have Date value in the format 'YYYYMMDD' example '20130311' and Time as 'HHmmSS' example '113400'

After applying XSLT in the output XML it should be transformed to YYYY-MM-DDTHH:mm:SS . '2013-03-11T11:34:00'

The minimum value for time can be 100 so i have to format the time as 00:01:00'.
Right now to achieve this im using substring.

Kindly let me know if I can use any other method with XSLT 2.0.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplication of elements with concat style names (XSLT 1) Aygith XSLT 4 February 14th, 2013 09:30 AM
Current Date and Time in XSLT devMc XSLT 6 October 21st, 2007 04:49 AM
getting current date and time in xslt 1.0 ashyabhi_hp XSLT 1 September 24th, 2007 03:17 AM
Current date time in XSLT verison 1.0 ksskumar XSLT 1 October 17th, 2006 07:58 AM

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