我想将日期转换为欧洲格式并将其显示在网格视图列中,谁能告诉我该怎么做?
这是我的代码:
EventManagerDataContext db = new EventManagerDataContext();
if (txtSearchnews.Text == "")
{
var q = from a in db.EMR_NEWs
select new
{
News_ID=a.News_ID,
Title=a.Title,
Text=a.Text,
Creation_Date=a.Creation_Date,
Publication_Date=a.Publication_Date,
Expiration_Date=a.Expiration_Date
};
grid.DataSource = q.ToList();
}