Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/07/2010, 16:06
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Quitar hora a fecha timestamp como en mysql con date_format

tatip

Debes castear el campo timestamp a date para que solo tome la fecha y no la hora.
Código SQL:
Ver original
  1. postgres=> SELECT NOW();
  2.             now
  3. ---------------------------
  4.  2010-07-15 17:07:53.89-05
  5. (1 fila)
  6.  
  7. postgres=> SELECT NOW()::DATE;
  8.     now
  9. ------------
  10.  2010-07-15
  11. (1 fila)

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming