Home › Forums › General Issues › Display day name based on date picker › Reply To: Display day name based on date picker
Thawnks Onyx808, works great! For those looking how to month or year, here is the list of formats – http://php.net/manual/en/datetime.createfromformat.php.
So if I input 10/24/2015 into the date picker, here’s the code to display “Saturday, October 24, 2015”.
<?php echo $dates->format('l'); echo ', '; echo $dates->format('F'); echo ' '; echo $dates->format('j'); echo ', '; echo $dates->format('Y');?>
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.