Skip to content

Instantly share code, notes, and snippets.

@aaronsummers
Last active May 5, 2021 08:47
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 aaronsummers/e4b6430d6cd52ad740f66f5c1e66aab9 to your computer and use it in GitHub Desktop.
Save aaronsummers/e4b6430d6cd52ad740f66f5c1e66aab9 to your computer and use it in GitHub Desktop.
Get the day of the week from the date with php
<?php
$date = date('Y-m-d');
$dayOfWeek = date("l", strtotime($date));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment