Home › Forums › General Issues › Simply display DAY of the Date Time Picker › Reply To: Simply display DAY of the Date Time Picker
The problem is that the return formatting you have set is not a valid date for use in strtotime(). Set the return formatting as, the 3rd selection ACF gives you is. Alternately you can get the unformulated value from ACF…. I think that this will return the needed timestamp, but I’m not sure so you’ll need to test it.
$date = get_field('start_datum', false, false); ?>
<span><?php echo date('d', $date); ?></span>
<span><?php echo date('M', $date); ?></span>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.