Link to add the entire event of the day to Google Calendar

So, I looked at the link to add to the Google calendar , but I want to do the same with the whole day.

I tried to do it dates={date.getUTCDate()}, but the link does not lead me to the google cal add event page (it just leads me to my calendar), I suspect the date is incorrect.

thank

+4
source share
1 answer

If you don’t put the time in the link, it looks like an event all day, for example: 20160627/20160627

, 27 , ( Google):

<a href="http://www.google.com/calendar/event?
action=TEMPLATE
&text=[event-title]
&dates=20160627/20160627
&details=[description]
&location=[location]
&trp=false
&sprop=
&sprop=name:"
target="_blank" rel="nofollow">Add to my calendar</a>

( , ):

<a href="http://www.google.com/calendar/event?
action=TEMPLATE
&text=[event-title]
&dates=20160627/20160629
&details=[description]
&location=[location]
&trp=false
&sprop=
&sprop=name:"
target="_blank" rel="nofollow">Add to my calendar</a>
+3

All Articles