Created
August 7, 2019 21:40
-
-
Save parzibyte/14b251207192157eef036c2dbf02ff76 to your computer and use it in GitHub Desktop.
Restar meses 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 | |
$haceNueveMeses = strtotime("-9 month"); | |
$formateado = date("Y-m-d H:i:s", $haceNueveMeses); | |
echo "Hace 9 meses era $formateado"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment