Created
August 7, 2019 21:41
-
-
Save parzibyte/03e7bfc7c47ff76c3c541333eebb9fc7 to your computer and use it in GitHub Desktop.
Sumar semanas a fecha en PHP - https://parzibyte.me/blog/2018/10/04/php-strtotime-manipular-fechas/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dentroDeDosSemanas = strtotime("+2 week"); | |
$formateado = date("Y-m-d H:i:s", $dentroDeDosSemanas); | |
$formateadoAhora = date("Y-m-d H:i:s"); | |
echo "Ahora es $formateadoAhora y dentro de 2 semanas será $formateado"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment