<?php
$fmtRo = new IntlDateFormatter(
'ro_RO',
IntlDateFormatter::MEDIUM,
IntlDateFormatter::MEDIUM,
'Europe/Bucharest',
IntlDateFormatter::GREGORIAN,
"dd MMM y, hh:mm"
);
echo $fmtRo->format(time());
echo PHP_EOL;
$fmtEn = new IntlDateFormatter(
'en_EN',
IntlDateFormatter::MEDIUM,
IntlDateFormatter::MEDIUM,
'Europe/Bucharest',
IntlDateFormatter::GREGORIAN,
"dd LLL y, hh:mm"
);
echo $fmtEn->format(time());
echo PHP_EOL;
echo date ("d M Y, H:i");
preferences:
62.9 ms | 402 KiB | 5 Q