Last active
October 8, 2018 12:51
-
-
Save cdncat/95801f3237424909f9372ceabe6d4679 to your computer and use it in GitHub Desktop.
Google Calendar URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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