Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/12/2005, 20:55
Avatar de Quest
Quest
 
Fecha de Ingreso: diciembre-2002
Ubicación: Santiago
Mensajes: 129
Antigüedad: 21 años, 4 meses
Puntos: 2
tambien puede tienes la funcion mysql MONTH(date).

Código:
MONTH(date)

Returns the month for date, in the range 1 to 12.

mysql> SELECT MONTH('1998-02-03');
        -> 2
y la funcion mysql YEAR(date)

Código:
YEAR(date)

Returns the year for date, in the range 1000 to 9999.

mysql> SELECT YEAR('98-02-03');
        -> 1998
__________________
http://victorsanmartin.com
Web Developer
http://www.guiasitios.cl