Skip to content

Instantly share code, notes, and snippets.

@Guley
Created March 20, 2019 06:06
Show Gist options
  • Save Guley/aee2d02ab2977e48b7bddf0bbb755081 to your computer and use it in GitHub Desktop.
Save Guley/aee2d02ab2977e48b7bddf0bbb755081 to your computer and use it in GitHub Desktop.
Php get next week date by current week day name
<?php
$nextKeyday = strtotime('Mon');
$nextWeek = strtotime("+7 day",$nextKeyday);
echo date('Y-m-d',$nextWeek);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment