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

Discussion in 'ASP .Net' started by Rick Walsh, Jul 15, 2003.

  1. Rick Walsh

    Rick Walsh Guest

    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?
     
    Rick Walsh, Jul 15, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Lozzi

    Dates dates dates dates... SQL and ASP.NET

    David Lozzi, Sep 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    911
    Rob Schieber
    Sep 30, 2005
  2. Replies:
    1
    Views:
    3,695
    A. Bolmarcich
    May 27, 2005
  3. PW

    Dates! Dates! Dates!

    PW, Aug 7, 2004, in forum: ASP General
    Replies:
    4
    Views:
    235
    Mark Schupp
    Aug 9, 2004
  4. Replies:
    1
    Views:
    240
    Jano Svitok
    Jul 17, 2007
  5. kellygreer1

    RFC-822 dates into Ruby dates

    kellygreer1, Jun 8, 2008, in forum: Ruby
    Replies:
    1
    Views:
    269
    Eric I.
    Jun 8, 2008
Loading...

Share This Page