-1
我有一个LINQ查询显示低于格式日期
XDocument data = 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;
我想格式化“MM/YY”日期和时间“HH:MM” 谢谢
嗨,你的日期字段的类型是什么? –
都是字符串 –