convert string to date in linq query

Posted by Venkatesh under ASP.NET on 5/3/2011 | Points: 10 | Views : 5099 | Status : [Member] | Replies : 1
Hi

how to convert string to date using linq query.I want the date like 05/03/2011.In the database one coulmn is there which has datetime date type.So whenever i am insert into
table it should be 05/03/2011.

Thanks
Venkatesh.P




Responses

Posted by: Buddhasmiles on: 5/4/2011 [Member] Starter | Points: 25

Up
0
Down
hi,

try this way
 obj.Where(cls => Convert.ToDateTime("1/1/2008 " + cls.START_TIME)



jeebu

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response