Hi everybody,
I am having problem with this query
I am using Access database and asp.net c# 2.0 to reterieve things using this
query
select count(*) as itemTotal from schoolitemmap
where (schoolid =1 and OrderDate = 8/3/2009) and itemId = 1
this query does not return nything.
(this date used in query is in m/d/y format as a
string)
and m using date() function as default value for OrderDate field in database
which is also in format (m/d/y)
Plase help .......
Thanks
Loading
Roei BarPosted Aug 22, 2009, 8:05 AM
just do the following
string selectedDate = Calander.SelectedValue;
selectedDate = selectedDate.Replace("/", "-");
and then :
dont forget to mark this as "Accepted Answer"
kawaljit singhPosted Aug 22, 2009, 5:05 AM
but i hav to pass the value to orderdate through a textbox using ajax calender extender...............in which date is selected in mm/dd/yy format......
how do i convert this textbox value (date) to date format of access............
Roei BarPosted Aug 22, 2009, 4:57 AM
here is the working code
if you liked this dont forget to mark "Accepted Answer"