Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Coloboración Paypal con ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 08-09-2017
rafaelon rafaelon is offline
Miembro
 
Registrado: sep 2010
Posts: 29
Poder: 0
rafaelon Va por buen camino
si cierto amigo , disculpa, el campo fecha es texto , antes tenia fecha y hora en campos distintos , pero probando otras soluciones ahora los tengo en el mismo (fecha) y guarda DD-MM-YYYY HH:MM
Responder Con Cita
  #2  
Antiguo 08-09-2017
Avatar de Casimiro Noteví
Casimiro Noteví Casimiro Noteví is online now
Merodeador
 
Registrado: sep 2004
Ubicación: En algún lugar.
Posts: 32.670
Poder: 10
Casimiro Noteví Tiene un aura espectacularCasimiro Noteví Tiene un aura espectacular
Vaya, es una mala idea guardar una fecha en formato texto. Pero en fin, entonces tendrás que indicar la hora, además de la fecha, algo así como:
Código SQL [-]
select campo from tabla where fecha like '08-09-2017%'
Responder Con Cita
  #3  
Antiguo 08-09-2017
Avatar de movorack
[movorack] movorack is offline
Miguel A. Valero
 
Registrado: feb 2007
Ubicación: Bogotá - Colombia
Posts: 1.346
Poder: 22
movorack Va camino a la famamovorack Va camino a la fama
Revisa este hilo
__________________
Buena caza y buen remar... http://mivaler.blogspot.com
Responder Con Cita
  #4  
Antiguo 08-09-2017
rafaelon rafaelon is offline
Miembro
 
Registrado: sep 2010
Posts: 29
Poder: 0
rafaelon Va por buen camino
lo resolvi de esta manera no se si sea la mas optima , gracias por sus respuestas

Código Delphi [-]
procedure Tfrm_menu.FlatButton2Click(Sender: TObject);
var
dia:string;
begin
dia:=datetostr(IncDay(date, 1));
Buscarf (label7.Caption, encontrado);
if encontrado then
with frm_reportediario.ADOQuery1 do
begin
close;
sql.clear;
SQL.Text:= 'select * from ventas where hora between :PFechai and :PFechaf ';
frm_reportediario.ADOQuery1.Parameters.ParamByName('PFechai').DataType:=ftstring;
frm_reportediario.ADOQuery1.Parameters.ParamByName('PFechai').Value:=frm_menu.Label7.Caption +' ' + '12:00';
//showmessage (frm_reportediario.ADOQuery1.Parameters.ParamByName('PFechai').Value);
frm_reportediario.ADOQuery1.Parameters.ParamByName('PFechaf').DataType:=ftstring;
frm_reportediario.ADOQuery1.Parameters.ParamByName('PFechaf').Value:=dia +' ' +'6:00';
//showmessage (frm_reportediario.ADOQuery1.Parameters.ParamByName('PFechaf').Value);
Open;
begin
a:=label7.Caption;
frm_reportediario.RLReport1.Prepare;
frm_reportediario.RLReport1.SaveToFile('C:\Billar\Reportes\Reportediario_' + (a)  + ('.pdf') );
frm_reportediario.RLReport1.Preview;
 end;
 end
 else
 Showmessage('No hay ordenes en el día')


end;

Última edición por rafaelon fecha: 08-09-2017 a las 23:00:22.
Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
consulta con hora y fecha FGarcia Firebird e Interbase 3 22-02-2015 23:49:36
Consulta de fecha con hora, como? El_Raso SQL 6 18-03-2010 19:01:13
Consulta SQL con fecha y hora vpepen SQL 0 10-12-2009 17:11:13
Filtrar consulta por fecha y hora Alejandrina SQL 4 16-06-2008 08:18:10
Error en consulta con fecha y hora. Tecnic2 SQL 10 01-10-2005 01:35:25


La franja horaria es GMT +2. Ahora son las 14:55:15.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi