html element to separate php variable strings - ACF datepicker
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*/spanspan*week day*/spanspan*month*/spanspan*year*/span
but despite many attemps, i couldn't make it -_- Thanks for your help ;-)
Topic advanced-custom-fields datepicker variables Wordpress
Category Web