Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/04/2019, 09:19
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 2 meses
Puntos: 1146
Respuesta: tomar dia del mes

Deberías ser mas especifico y mostrar el código que tienes

un ejemplo rápido

Código PHP:
Ver original
  1. <?php
  2. $fecha_inicio = date('j') < 25 ? date('Y-m-25', strtotime('-1 month')) : date('Y-m-25');
  3. $fecha_final = date('j') < 25 ? date('Y-m-25') : date('Y-m-25', strtotime('+1 month'));
  4. echo $fecha_inicio . ' - ' . $fecha_final;