[Solved] Giving wrong day of week in PHP


You need to use date format “Y-m-d” to get the result you want.
$date=”2017/06/07″ means June 07, 2017.

If you want to get the day of July 06, 2017 then change

$date="2017/06/07";

To

$date="2017/07/06";

0

solved Giving wrong day of week in PHP