ASP, ASP.NET, JavaScript, XSLT, Converting dates in number format 5/10/2008

Discussion in 'Digital Media' started by vixengraphix, May 2, 2008.

  1. vixengraphix Guest

    vixengraphix
    to May 10, 2008...? I am displaying content in an .aspx page that is being pulled from a web service XML feed. I have used XSL to fomat the content, but now I need to convert the dates:

    <startDate>5/10/2008 6:30:00 AM</startDate>
    <endDate>5/10/2008 3:30:00 PM</endDate>

    to this format: May 10, 2008. I also need to display the times this way: 6:30 am - 3:30 pm. How do I do this? ASP, ASP.NET, JavaScript, XSLT - not sure what will do the trick... I'll try with whatever works.

    Sample XML Code:
    <weeklyEvents>
    <thisWeek>
    <event Id="1">
    <title>Golf Outing</title>
    <startDate>5/10/2008 6:30:00 AM</startDate>
    <endDate>5/10/2008 3:30:00 PM</endDate>
    <description>Blah Blah Blah</description>
    </event>
    <event Id="2">
    <title>Brunch</title>
    <startDate>5/15/2008 11:00:00 AM</startDate>
    <endDate>5/15/2008 3:00:00 PM</endDate>
    <description>Blah Blah Blah</description>
    </event>
    </thisWeek>
    </weeklyEvents>

    Thanks...
Loading...

Share This Page