Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/09/2007, 06:35
Avatar de Andres95
Andres95
Colaborador
 
Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 19 años, 5 meses
Puntos: 38
Re: Fecha igual a la del sistema

Código:
select Idd,fecha,titulo,contenido 
from   noticias 
where  fecha >= convert(datetime,convert(varchar,getdate(),112)) and 
       fecha < convert(datetime,convert(varchar, dateadd(dd,1,getdate()),112))
__________________
La sencillez y naturalidad son el supremo y último fin de la cultura...
--
MCTS : SQL Server 2008, .NET Framework 3.5, ASP.NET Applications.