Skip to content

Instantly share code, notes, and snippets.

@fmagrosoto
Created April 7, 2022 16:40
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 fmagrosoto/3ad3107a3a7e2a786d1e58fdc24fd493 to your computer and use it in GitHub Desktop.
Save fmagrosoto/3ad3107a3a7e2a786d1e58fdc24fd493 to your computer and use it in GitHub Desktop.
Función PHP para añadir días a una fecha dada y en formato MySQL: YYYY-mm-dd
$fechaMasQuince = date('Y-m-d', strtotime($fechaCruda . ' + 15 days'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment