- var_dump: documentation ( source)
<?php
foreach (['es_ES', 'es_AR'] as $locale) {
$fmt = new IntlDateFormatter(
$locale,
IntlDateFormatter::MEDIUM,
IntlDateFormatter::MEDIUM,
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN
);
var_dump($fmt->format((new DateTime('2020-09-15'))->format('U')));
}