<?php
// Prints the day, date, month, year, military time.
$date1 = date("l jS \of F Y H:i:s "); //UTC
$dayNumber = date("z") + 1; //Zero based.
echo "Day: " . $dayNumber . "<br />";
echo $date1 . "<br />";
?>
Result:
Day: 100
Thursday 10th of April 2025 17:56:29