Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 29, 2019 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/82e3a0c5a89efd7b175ff2892807ffe0 to your computer and use it in GitHub Desktop.
Save parzibyte/82e3a0c5a89efd7b175ff2892807ffe0 to your computer and use it in GitHub Desktop.
<?php
/*
Asumimos que $fechaComoEntero es
como su nombre lo dice una variable entera, que
calculamos con los ejemplos mostrados arriba
*/
$mes = date("m", $fechaComoEntero);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment