Created
November 27, 2013 10:00
-
-
Save jgdoncel/7673318 to your computer and use it in GitHub Desktop.
Obtener el último día del mes
t devuelve el número total de días del mes en cuestión
From http://stackoverflow.com/questions/1686724/php-last-day-of-the-month
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
$fecha = "2013-11-23"; | |
echo date("Y/m/t", strtotime($fecha)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment