Ver Mensaje Individual
  #4  
Antiguo 11-11-2009
Avatar de ContraVeneno
ContraVeneno ContraVeneno is offline
Miembro
 
Registrado: may 2005
Ubicación: Torreón, México
Posts: 4.738
Reputación: 24
ContraVeneno Va por buen camino
yo preferiría utilizar parámetros, de esa forma no tendrías que hacer ninguna conversión de fechas a texto o viceversa:

Código Delphi [-]
with TuQuery do begin
 If active then close;
 SQL.Clear;
 SQL.Add('Select Campos');
 SQL.Add('From Tabla');
 SQL.Add('Where Fecha Between :FechaIni and :FechaFin');
 Parameters.ParamByName('FechaIni').Value := UnDateTimePicker.Date;
 Parameters.ParamByName('FechaFin').Value := OtroDateTimePicker.Date;
 Open;
end; //with
__________________

Responder Con Cita