How to format date in Linq --------------------------
Hi,
I am working on a linq query. I want to format date column to 'Mm/dd/yy' format. But, the Linq query shows error that Linq doesn't support formatting. Any help?
Here is my code:
This is part of linq query.I am tring to format and concatinate two columns.
select new abc
{
cardDates = (cad.Key.SchStartDT.ToString("dd/MM/yyyy") + "-" + cad.Key.SchEndDT.ToString("dd/MM/yyyy"))
});