[RFC] New procedural function intl_date_format() f or PHP 8.7

From: Date: Sun, 27 Sep 2026 19:17:58 +0000
Subject:  [RFC] New procedural function intl_date_format() f or PHP 8.7
Groups: php.internals 
Request: Send a blank email to internals+get-132664@lists.php.net to get a copy of this message
Hi everyone, I hope you're all doing well. I would like to propose a new RFC: intl_date_format(). The main idea behind this is to simplify date formatting across different calendars (like Persian, Islamic, etc.) without having to go through the verbose setup of IntlDateFormatter every single time. It's meant to be a simple, procedural wrapper that makes handling non-Gregorian calendars much more accessible for everyday tasks. You can check out the full RFC here: https://wiki.php.net/rfc/intl_date_format I’ve ensured the implementation remains consistent with our existing intl error handling patterns (using E_WARNING and returning false on failure). I’m really looking forward to hearing your thoughts, feedback, and any suggestions you might have to improve this. Thanks for your time and for all the great work you do! Best regards, Sepehr Mahmoudi

« previous php.internals (#132664) next »