PHP Get Current Date and Time in Human Readable Format
PHP Function curDateTime() to Get Current Date and Time in a Normal Human Friendly Fashion ie September 27, 2024 at 10:55:32 PM
Home
Short:
// function to get the current date and // time in a normal human friendly format function curDateTime() { $monthName = date("F", mktime(0, 0, 0, date("m"))); $day = date("d"); $year = date("Y"); $time = date("h:i:s A"); return $monthName . " " . $day . ", " . $year . " at " . $time; }
December 23, 2024 at 05:24:01 AM
source code home