Hi guys, I am using calendarextender control in asp.net.It displays only date ,not time.But while inserting to database ,time is inserted automatically.But while retrieving the data from database using date in where condition ,no correponding records displays.What modification in storedprocedure i can do to resolve this problem.
I used following code in storedprocedure.Name Of table is FileM
Select * from FileM Where OldDate = '@OldDate%'
OldDate field in databese is stores as datetime i.e date is date i inserted but time is in either 08:00:00:000 or 00:00:00:000.So the above query gives records for date that coming with time as 00:00:00:000,but not with 08:00:00:000