js and php date code example Example: get day from date php // Prints the day echo date("l") . "<br>";