het frnds..
i want to get only date part from date field from a table of SQL Server using linq to SQL.
Please.....
Thanks...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 28, 2014, 5:43 AM
Hi,
I think, Field type Datatime right? so datatime type has on property called Date. using this property you can get only date.
Like
var p = from l in context.DateExample
select new
{
date1 = l.DateTimeFiled.Date
}
hope this will help you.