Extract Month & Date From ACF Date & Time

Share Now

<?php
  $ev_date_time = get_field('start_ev_date_time');
  $eventDate = strtotime(get_field('start_ev_date_time'));
?> 

//MONTH
<?php echo date('M', $eventDate); ?>
//DATE
<?php echo date('d', $eventDate); ?>
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert