Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/07/2010, 07:26
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: fechas tipo FROM_UNIXTIME

Si te entendí bien prueba esto

Código MySQL:
Ver original
  1. c.`cal_title`,
  2. f.`cal_start`,
  3. f.`cal_end`,
  4. FROM_UNIXTIME( f.`cal_start`, '%Y-%m-%d %H:%i:%s') AS inicio,
  5. FROM_UNIXTIME( f.`cal_end`, '%Y-%m-%d %H:%i:%s') AS fin
  6. FROM egw_cal c, egw_cal_dates f
  7. where c.`cal_id` = f.`cal_id`
  8. curdate() BETWEEN FROM_UNIXTIME( f.`cal_start`, '%Y-%m-%d %H:%i:%s')
  9. FROM_UNIXTIME( f.`cal_end`, '%Y-%m-%d %H:%i:%s')

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