in this article, we will learn how to extract the day name from the date in PHP


Example:


<?php
echo date('D', strtotime('2021-01-17'));
?>


Output:

Sun