So, I want to retrieve data between two dates in mssql. I have a table, name is FILES. And I have 2 column, names are NAME, RECORDDATE (nvarchar). When I save my data, I take from raddatetimepicker.text so my value is "22 December 2015 Tuesday".
My query is
select * from FILES where RECORDDATE>= '11 January 2015 Saturday' and RECORDDATE<= '24 October 2015 Monday'
This query is working but when I change '11 January 2015 Saturday' to '28 January 2015 Tuesday' it is not working. It is so interesting because my query with 21 January also working but when I write 28 January I got 0 rows.
I really stuck and no idea about problem.
Your answers are true but also others answers are true so I do not know how I can I mark all answers as an answer :) Thanks for that. That is my first project after 1 month self training so do not surprise so much :D