Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/09/2015, 08:43
falkon765
 
Fecha de Ingreso: noviembre-2012
Mensajes: 139
Antigüedad: 11 años, 5 meses
Puntos: 1
Respuesta: fechas en php

Cita:
Iniciado por xfxstudios Ver Mensaje
estas totalmente seguro que utilizaste el segundo codigo???? porque a mi me arroja 2015-09-23 Wed
si tienes razon error al modificarlo pero cuando le doy a
Código PHP:
$fecha1 strtotime('2015-8-31'); 
$fecha2 strtotime('+15 day'$fecha1);
for(
$fecha1;$fecha1<=$fecha2;$fecha1=strtotime('+10 day ' date('Y-m-d',$fecha1))){ 
    if((
strcmp(date('D',$fecha1),'Sun')!=0) and (strcmp(date('D',$fecha1),'Sat')!=0)){
    }
}
echo 
date('Y-m-d D',$fecha1) . '<br />'
me muestra Sunday y no me deberia mostrar la siguiente fecha