I have tried the following code to find the day in a week.
<?php
$day = date('l', strtotime( $date));
?>
When I enter the date "12-25-2049", it says "Wednesday" but it should be "Saturday".
But when I enter the date "11-11-2014" or "2015" it gives the correct day of the week.
Why is the first date not working as expected?