Hey guys. I have got a load of XML that I serialised from a class. I am databinding this to a Repeater and letting it do it's magic. My problem is that one of the fields is a date and so I need to format it properly. I am having no luck so can anyone help?
XML:
ASPX Code for databind:
I obviously want the 'Inserted' element to be like dd/MM/yyyy or something similar.
XML:
Code:
<SimpleList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Summary> <ID>9</ID> <Inserted>2008-09-29T09:35:17.663</Inserted> <LastUpdated>1900-01-01T00:00:06.837</LastUpdated> </Summary> </SimpleList>
Code:
<%#(Ctype(Container.DataItem, System.Xml.XmlNode))("ID").InnerText %>
<%#(Ctype(Container.DataItem, System.Xml.XmlNode))("Inserted").InnerText %>
Comment