Home › Forums › Add-ons › Repeater Field › Formatting string from date picker › Reply To: Formatting string from date picker
Hi @jeffhogg11
No worries. You can use a function called get_sub_field to return a value and store it in a variable like so:
$date = get_sub_field('field_name');
Please note that the get_sub_field must be used WITHIN a has_sub_field or have_rows loop.
Please check out the docs for loop examples, and also the date picker field to see how you can format the string
Thanks
E
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.