-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」 謝謝
嗨,你的日期字段的類型是什麼? –
都是字符串 –