Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/07/2011, 16:00
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Conocer número de semana de una fecha

Algo así:

Código PHP:
Ver original
  1. $fecha = '2012-06-23';
  2. echo date('W', strtotime($fecha)) . PHP_EOL;

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)