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?
Leave an answer