Forum Academy Marketplace Showcase Pricing Features

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:…&dates=20220114T06500Z%2F20220120T165500Z

So dates are:

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