Using Winforms, .Net 4.5.
I have a form with a DataGridView and in the dataGridView I insert a few values from another form like Client name and Date, I struggled for a few hours to figure it out, I'm using SQL Server Compact 4.0 so it only supports DateTime
datatype unlike SQL Server 2008 or so where you can store date without time, so what I need to do is some select between dates query.
But in SQL Server Compact you can store only the whole value of date like 24/02/2014 12:00
I only need the date and SQL Server Compact won't let me do that. I tried using DateTimePicker.Text
to send data to SQL Server Compact but with strings you cannot do a select between dates because they are not dates they are strings. What can I do from this situation, remember I need only date format I don't need the time, remember also SQL Server Compact cannot store only dates. So is there any possible ways to do this select between strings (dateTimePicker.Text
) ?