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 June 4th, 2014, 11:40 AM
Authorized User
 
Join Date: Feb 2013
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trimming result from datetime()

Hallo everyone,

I am using the datetime() function.

Code:
xmlns:datetime="http://exslt.org/dates-and-times"
...
<xsl:value-of select="datetime:dateTime()" />
...
It gives me the result:
Code:
2014-06-04T15:04:23+02:00
I tried to get this result by using trimming function, but i was not successfull. Is it possible to get the result below?
Code:
2014-06-04T15:04:23
Thanks for the help.

Regards,

Ratna
 
Old June 4th, 2014, 11:47 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Use the substring() function.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
 
Old June 14th, 2014, 06:23 PM
Authorized User
 
Join Date: Feb 2013
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Mr Kay





Similar Threads
Thread Thread Starter Forum Replies Last Post
line breaks & trimming mikeo1313 Excel VBA 1 April 29th, 2010 10:02 PM
Trimming String MacDevv C# 2005 5 May 6th, 2008 08:55 AM
Trimming Words Nicky_uk Classic ASP Databases 5 February 21st, 2008 02:06 PM
Site map security trimming. weisma BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 December 25th, 2006 11:57 PM
Trimming a query for search arnabghosh Classic ASP Databases 1 May 31st, 2005 07:39 AM





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