Displaying Google Calendar Data with datalist

lwathe1

New member
Joined
Nov 13, 2008
Messages
2
Programming Experience
Beginner
I'm relatively new to ASP.NET, but am trying to display Google Calendar events from the XML feed provided by Google in a Datalist, but am having difficulty formatting the date provided for each event.

Even with the following code, the date provided by Google Calendar dipslays unformatted (e.g., "2008-11-06T19:00:00.000-05:00":
HTML:
<asp:Label runat="server" ID="Label1" Text='<%# XPath("when/@startTime", "{0:M}") %>' ></asp:Label>

Obviously, the unformatted date is not very attractive. My guess is that it is not recognizing the xml data entry as a date and is thus unable to reformat it. Any thoughts?
 
Top Bottom