Home › Forums › ACF PRO › Storing date fields? › Reply To: Storing date fields?
First problem is that the format you’re attempting to store is incorrect. ACF may display and return values in the format you set but it always stores date fields in the format “YYYYMMDD”
The second problem could be related to the adding a new post where the custom field does not exist yet or updating and existing post that already has a date value. When using update_field() for new post you always need to use the field key and not the field name.
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.