I have web application in asp.net 4.0 am using calender control for "FromDate" when am going to fetch my records then my query is as follows:
Select *
From Sec_RoleFeatures
Where RoleId = 39
and FeatureCode = 'MR'
and FromDate='12/12/2012 11:05:05 AM'
as this `FromDate field date format does not match with sql format so result is that it does not give records give null.
so in this case what can I do? how to match my date format with sql date format?