Home › Forums › Calendar Products › Event Aggregator › ICS – How to specify all day Event?
- This topic has 5 replies, 4 voices, and was last updated 9 years, 3 months ago by
Rodrigo Torres.
-
AuthorPosts
-
December 15, 2016 at 5:44 pm #1206861
Rodrigo Torres
ParticipantI am creating an .ics file from scratch. I want to specify that an event is all day with no start or end time. Everything I try is either giving me a start time of 12AM or the import isn’t taking it.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:[email protected]
DTSTART:20161216
SUMMARY:Bastille Day Party
END:VEVENT
END:VCALENDARGives 12:00 AM Start Time.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:[email protected]
DTSTART:20161216
DTEND:20161217
SUMMARY:Bastille Day Party
END:VEVENT
END:VCALENDARAlso gives 12:00 AM Start Time.
Same with DTSTART:20161216T000000
The values that Google uses:
DTSTART;VALUE=DATE:20161216
DTEND;VALUE=DATE:20161217Give “Your preview doesn’t have any records to import.”
December 15, 2016 at 9:13 pm #1206905Cliff
MemberHi, Rodrigo.
I’d suggest a few things:
- Reference the iCalendar spec documentation at https://tools.ietf.org/html/rfc5545
- Before attempting your import, test your iCal file in an iCal validator, such as http://severinghaus.org/projects/icv/
- Create an event in The Events Calendar as an All Day event, then visit that event’s single event page — such as http://wpshindig.com/event/wordcamp-raleigh/ — and click the iCal Export button to see how our plugin generates an All Day event’s .ics file
All that being said, I believe the values you said Google uses is the correct format for an All Day event on December 16, 2016.
If your .ics file isn’t having any events in the preview and it validates, then I’d suggest putting a date in this search field: https://cl.ly/1J3q011P2d3O — it defaults to today’s date.
I hope this information helps!
December 15, 2016 at 9:18 pm #1206914Rodrigo Torres
ParticipantYes, that’s what I did with the events in my other forum post
December 15, 2016 at 9:31 pm #1206921Cliff
MemberPlease provide a link and explain how this thread relates to that other one.
Thank you.
January 6, 2017 at 8:35 am #1214385Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘ICS – How to specify all day Event?’ is closed to new replies.
