Skip to content

Instantly share code, notes, and snippets.

@cdncat
Last active October 8, 2018 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdncat/95801f3237424909f9372ceabe6d4679 to your computer and use it in GitHub Desktop.
Save cdncat/95801f3237424909f9372ceabe6d4679 to your computer and use it in GitHub Desktop.
Google Calendar URL
<a
href={"http://www.google.com/calendar/event?action=TEMPLATE"
+ "&text=" + event.name
+ "&dates=20181001T150000Z/20181105T170000Z"
+ "&location=" + "location_place"}
> ✚ gCal</a>
<!--by default, Google calendar is in GMT time (I think it's possible to add locale). -->
<!-- 20181001T15 00 00Z is the start date and time where it can be seen as "YYYYMMDD T HHMM 00Z" where YYYYMMDD is the YYYY-MM-DD format and HHMM is hour and minute in 24 hour format. -->
<!-- dates are in ISO 8601 format with slight modifications (there are no colons or dashes), see https://developers.google.com/gmail/markup/reference/datetime-formatting-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment