advanced custom fields – Get ACF time in His format


I have this functionality where when you click on a date it automatically adds as a reminder in google calendar. For this I’ve wrapped the date with the add to calendar link from google. Upon inspection I found out that google calendar requires dates and times in yyyymmdd and hhmmss format. And for ACF it is His format. By default ACF returns the time in H:i:s format.

I tried setting the return value format of my date field to His but it is still returning me in H:i:s format. I cannot add this time format in google calendar’s URL that’s why I need the time in His format.

so how do I do this?

buzz 1 year 2023-01-01T03:39:41-05:00 0 Answers 0 views 0

Leave an answer