Format date in linq query WP7

CheergycrycLe

New Member
I have a linq query showing below\[code\] XDocument data = http://stackoverflow.com/questions/10816051/XDocument.Parse(xml); var persons = from query in data.Descendants("Table") select new MailList { Sender = (string)query.Element("FromUser"), Body = (string)query.Element("Message"), Date = (string)query.Element("mDate"), Time = (string)query.Element("mTime"), }; EmailList.ItemsSource = persons;\[/code\]I want to format the date in "MM/yy" and the time to "hh:mm"Thank you
 
Back
Top