dates with db->xml->xsl->html

R

Rick Walsh

I am using the following code to export a dataset via xml and xsl to html:

-------------------------------------------------------------
..
..
..

Dim dataDoc as new XmlDataDocument(myDataSet)

Dim obj_transform As new XslTransform()
Dim obj_XsltArgs as new XsltArgumentList()

obj_transform.Load("c:/xsl.xsl")
obj_transform.Transform(dataDoc,obj_XsltArgs,obj_StringWriter,nothing)

str_output = obj_stringBuilder.ToString()

-------------------------------------------------------

This produces html fine. However dates are in the format:

2003-10-12T00:00:00.0000000+01:00

I want to format this as 2003-10-12

How do I do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top