Home / PHP Tips Generated By ChatGPT / Converting a Timestamp to a Readable Date in PHP Convert a Unix timestamp to a human-readable format using date(). Source Code $timestamp = time(); // Current timestamp echo date("Y-m-d H:i:s", $timestamp);