I need to send out an email with a “add to google calendar” button.
This can be easily done with a url like so:
For this to work google calendar required the specific date format: Ymd
With this format the 22nd of March 2019 looks like this: 20190322
I can change the date format globally to %Y%m%d for this to work.
However this changes the date format globally to a non human friendly format.
And since my %CUSTOM_DATE_FIELD% is also used elsewhere in emails (e.g. “see you on 22 Mar 2019”) this is a problem.
Is it possible to just output the date format in the Ymd format ONCE and not globally?
Something like this (obviously not working code right here):
I know that this would probably be possible with Zapier. But since this introduces multiple difficulties I would like to accomplish this without Zapier if possible.
Update:
Something like this ( obviously not working code right here ): https://www.google.com/calendar/render?action=TEMPLATE&text=SOMETITLE&dates=[%CUSTOM_DATE_FIELD%](format=Ymd)/[%CUSTOM_DATE_FIELD%](format=Ymd)
Hey ndannemann - I have a similar need to represent dates in several different ways in my automations. What I do is not as elegant as what you suggest, but it works:
I have several custom date fields:
event_date - the std ActiveCampaign date format
event_date_longform - like “Thursday, September 17, 2019”
event_date_dow - like “Thursday”
I load the values in these fields when I’m creating the record using Zapier date formatting routines. Not sure if this would work for you but if you’re not too proud to use a brute-force solution - there ya go!
thanks for the answer. I think that would work for me. Although I was hoping to do something like this without using some external tool like Zapier. But I’ll give it a try. Thanks a lot
This is Andres from the Customer Experience team here at ActiveCampaign, I would like to provide a response to this in order to keep our information updated in case somebody has the same question. I’m afraid that we don’t have a way at this time to modify only 1 campaign. I can definitely see how useful it would be to have a feature like this available. So, I’ll be happy to invite you to pass this idea along to the team as a feature request on our ideas page: Internal Ideas & Bug Reporting.
Our developer’s team takes great account of the suggestions registered there for upcoming product updates. We can definitely do this with any external integration using Zapier or any other platform that allows you to do this.