linQ not working in simple tasks
I wonder why does linQ do not work in simple scenerios like converting date..
DBOEODataContext db =newDBOEODataContext();var customerList= (from customerin db.PERSONswhere customer._OWNERID == 37where customer._DELETIONSTATUS == 0where customer._TYPE =="ALICI"orderby customer._LASTMODIFYDATEselectnew{
FULLNAME = customer._NAME +
" " + customer.LASTNAME,TEL = customer.MOBILETEL,
LASTCONTACTDATE = customer._LASTMODIFYDATE.ToShortDateString()
}).Take(10);
GridView1.DataSource = customerList;
GridView1.DataBind();
>>>>>>>>>>>>>>>>>>>>>
I get an error.......Member 'System.DateTime.ToShortDateString' could not be translated.
what is the "simplest" turn around for this?

