with query1, datetimepicker1 do
begin
  close;
  sql.clear;
  sql.add('select * from student where birthday=:birthday');
  parambyname('birthday').asdate := date;
  open;
end;