How to format date/time to google calendar link format?

I’m trying to format a date/time to fit the format that is expected by google calendar, so I can make a link to create a calendar event.

Google expects something like this:
https://www.google.com/calendar/render?action=TEMPLATE&…&dates=20220114T06500Z%2F20220120T165500Z

So dates are:
20220114T06500Z
20220120T165500Z

Main issue is the Time Zone TXX. How do I get the user’s time zone in this format?

This topic was automatically closed after 70 days. New replies are no longer allowed.