Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/09/2015, 18:32
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: fechas en php

prueba asi:
Código PHP:
Ver original
  1. $fecha1 = strtotime('2015-09-01');
  2. $fecha2 = strtotime('2015-09-29');
  3. for($fecha1;$fecha1<=$fecha2;$fecha1=strtotime('+1 day ' . date('Y-m-d',$fecha1))){
  4.     if((strcmp(date('D',$fecha1),'Sun')!=0) and (strcmp(date('D',$fecha1),'Sat')!=0)){
  5.         echo date('Y-m-d D',$fecha1) . '<br />';
  6.     }
  7. }
para tu caso serial ago mas o menos asi:
Código PHP:
Ver original
  1. $fecha1 = strtotime('2015-07-01');
  2. $fecha2 = strtotime('+15 day', $fecha1);
  3. for($fecha1;$fecha1<=$fecha2;$fecha1=strtotime('+10 day ' . date('Y-m-d',$fecha1))){
  4.     if((strcmp(date('D',$fecha1),'Sun')!=0) and (strcmp(date('D',$fecha1),'Sat')!=0)){
  5.     }
  6. }echo date('Y-m-d D',$fecha1) . '<br />';
__________________
[email protected]
HITCEL

Última edición por xfxstudios; 29/09/2015 a las 18:54