i am using ACF to display an internationalized date with this code :
<?php
$dateformatstring = "l j F Y";
$unixtimestamp = strtotime(get_field('date'));
?>
<?php echo date_i18n($dateformatstring, $unixtimestamp); ?>
but i wish i could separate each part into span for example to obtain a result like this :
<span>*day number*</span><span>*week day*</span><span>*month*</span><span>*year*</span>
but despite many attemps, i couldn't make it -_- Thanks for your help ;-)
echo '<span>'.date_i18n('..', $timestamp).'</span><span>'.date_i18n(...
(you get the idea) ? – kero Nov 14 '18 at 19:36