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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 28, 2014, 1:43 AM EDT
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.