I have a column Expiry_Date
with date and time values in table1
.
I am sending a date value from the front end using C#.
I write the query to get some information if where condition is true.
For ex: in table1
, Expiry_Date
has the value 2016-03-11 23:59:59.000
select USER_NAME, USER_EMAIL
from table1
where Expiry_Date = '2016-03-12';
When I execute this, I am not getting any results. Actually the table has the data for this date, due to not having time part in supplied date, it's not matching with Expiry_Date
.
So please let me know how can we do this without passing time from front end.