calendar with am and pm html php code example Example: get day from date php // Prints the day echo date("l") . "<br>";