I´ve got a Sql-Express database where my C#-application has it´s data from.
One dataset has name, id, date etc.
Now, I need to restrict the datasets to a defined timespan.
My problem-solving approach is a Sql-Statement with the BETWEEN keyword.
For sure, this doesn´t work with String-dates.
How can I solve that?
Use CAST or CONVERT.
Here is a useful list illustrating CONVERT codes for dates.