Last active
May 5, 2021 08:47
-
-
Save aaronsummers/e4b6430d6cd52ad740f66f5c1e66aab9 to your computer and use it in GitHub Desktop.
Get the day of the week from the date with php
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
<?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