0
How to take the value that is in datepicker and do a search in the database? I tried this way but it is not correct
var cmd = new MySqlCommand("SELECT distinct id, Pedagio, Carro, Placa, Fabricante, Ano, Cor, Data FROM tcc WHERE Data = '" + txtDate.Date + "'", _connection);
I was without the name I put now, but still without performing the action.
<DatePicker x:Name="txtDate" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="0,208,0,0" VerticalAlignment="Top" Width="415">
This is another problem, but what he asked about is how to get the date of the datepicker control.
– Ismael
I’ve identified that mistake, but that’s not why.
– Jon