473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Formatting Date

I want to create a HTML page from an XML document using XSLT. The date
values in the XML document are in the ISO format. I want to have the web
page display something like "7/15/2004" for the date and in another case I
want "HH:MM" for time of day. Can anyone point me to some resources
explaining how to accomplish this?

Thanks

Wayne
Nov 12 '05 #1
3 1578


Wayne Wengert wrote:
I want to create a HTML page from an XML document using XSLT. The date
values in the XML document are in the ISO format. I want to have the web
page display something like "7/15/2004" for the date and in another case I
want "HH:MM" for time of day. Can anyone point me to some resources
explaining how to accomplish this?


Which XSLT processor are you using? MSXML provides extension functions
like format-date and format-time. I am not sure the .NET XSLT processor
supports those.
There are also attempts like
http://www.exslt.org/date/index.html
which might help to solve that.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #2
Martin;

Thanks for the response. I'll see if I can find anything about those
functions in VSNET 2003. I looked at that link you suggested but it is a bit
obscure on just what you need to download, how to install it and how to use
it. Do you know of any examples for that?

Wayne

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:eB**************@TK2MSFTNGP10.phx.gbl...


Wayne Wengert wrote:
I want to create a HTML page from an XML document using XSLT. The date
values in the XML document are in the ISO format. I want to have the web
page display something like "7/15/2004" for the date and in another case I want "HH:MM" for time of day. Can anyone point me to some resources
explaining how to accomplish this?


Which XSLT processor are you using? MSXML provides extension functions
like format-date and format-time. I am not sure the .NET XSLT processor
supports those.
There are also attempts like
http://www.exslt.org/date/index.html
which might help to solve that.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #3


Wayne Wengert wrote:

Thanks for the response. I'll see if I can find anything about those
functions in VSNET 2003. I looked at that link you suggested but it is a bit
obscure on just what you need to download, how to install it and how to use
it. Do you know of any examples for that?


If you use .NET, then maybe Oleg's nxslt
http://www.tkachenko.com/dotnet/nxslt.html
helps, it seems to have
http://www.tkachenko.com/dotnet/nxsl...exslt-funclist
date and time functions.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
2
by: Sara | last post by:
The problem: Conditional formatting bold, red when field Value < date() sets the field background to white - always - whether condition is met or not. I want the field unfilled and just red/bold...
4
by: deko | last post by:
I've heard it's best not to have any formatting specified for Table fields (except perhaps Currency), and instead set the formatting in the Form or Report. But what about Yes/No fields? When I...
4
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
4
by: Nalaka | last post by:
Hi, I have two questions about gridViews. 1. How can I intercept the row/column values at loading to change values? 2. After I update a row (using default update functionality), how can I...
2
by: Thomas Beyerlein | last post by:
I am binding dates to a textbox, the date is stored in SQL in a datetime field. When it gets bound it turns it into a long date (Sunday, Dec. 25 2005), in SQL when viewing the table it views as a...
2
by: johndcal | last post by:
Hello All, I have a date value that I pull from a .csv file. After reading the file and storing the values in an array the value of the date could be found in $array, for example....
2
by: David Veeneman | last post by:
How does one format a date column in a GridView control? I had assumed that the DataFormat string would do it, but MSDN only shows numeric formatting codes. Can dates be formatted using that...
4
by: Ken Wigle | last post by:
All, I would be very grateful for any help on this question. I have an application in asp.net 2.0 where I dynamically create a datatable and then bind that to a gridview. Unfortunately, the...
6
by: Tomasz J | last post by:
Hello developers, I bind my TextBox control specyfying a format stored in my application global ApplicationContext object - it has a static string CurrencyFormat property. The problem - this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.