Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/09/2009, 09:53
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: Pregunta sobre NOW()

Para resolver esto, existe una función que te permite entrar la fecha como quieras y el motor dte la convierte al formato de mysql.

Código mysql:
Ver original
  1. mysql> select str_to_date('05/sep/2009','%d/%b/%Y');
  2. +---------------------------------------+
  3. | str_to_date('05/sep/2009','%d/%b/%Y') |
  4. +---------------------------------------+
  5. | 2009-09-05                            |
  6. +---------------------------------------+
  7. 1 row in set (0.00 sec)
  8.  
  9. mysql>

http://www.conclase.net/c/mysql/inde...un=STR_TO_DATE
__________________
Without data, You are another person with an opinion.
W. Edwads Deming