I've tried to query with a datetime in C#, database : SQlite.
cmd.CommandText = @"select * from PhieuNhap where NgayNhap=$NgayNhap";
cmd.Parameters.Add(new SQLiteParameter("$NgayNhap", SqlDbType.DateTime).Value = ngayNhap;
ngayNhap is a DateTime type.
But it seems doesn't work this way .