Home › Forums › General Issues › Extract and compare month from two date time picker fields › Reply To: Extract and compare month from two date time picker fields
When getting 1970 the problem is your return format. The format being returned is not an acceptable format use in date functions. When I’m going to be manipulating dates I always set the return format to “Y-m-d” or “Y-m-d H:i:s” for date time fields and then I reformat it as I need.
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.