What It Does

A simple PHP function to format a standard date string (e.g., '2025-09-29') into a more readable and user-friendly format (e.g., '29 September 2025'). Perfect for displaying dates on a webpage.


Example Usage

After including the file, you can use the function like this:

<?php
require_once 'format-date.php';

$database_date = "2025-10-31";
$beautiful_date = format_pretty_date($database_date);

echo $beautiful_date; 
// Result: 31 October 2025
?>