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 July 11th, 2008, 07:31 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

>Any pointers ?

See my sig.

Or if you prefer, read the spec

http://www.w3.org/TR/xslt20/#format-date

You can convert anything to a string using the string() function. Specifying as="xs:string" doesn't convert it to a string, it asserts that it already is a string.

By the way, make sure you are using Altova 2008. The 2007 edition didn't support format-date() properly.

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
Current Date s15199d Reporting Services 2 April 3rd, 2006 12:38 AM
trigger to insert current date on insert kev_79 SQL Server 2000 3 January 23rd, 2006 05:58 PM
Current Date rgudino Java Databases 1 May 5th, 2005 03:09 AM
How to make insert statments for current db method Access VBA 8 March 23rd, 2005 10:47 PM
Current Date?? morpheus SQL Server 2000 2 November 27th, 2003 04:21 PM





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