Thanks for the iCal parser. It will save me a ton of work. I have a couple of questions (which I also asked in an earlier question I had posted in response to your answer. So, feel free to skip it if you get to those first).
When parsing an iCal, how can I find if VEvent is an all day event? I looked at the class methods and I don't see any which returns the value. Am I just missing something?
I would like to get the timezone info, but the following code returns null.
ICalReader iCalReader = new ICalReader(f);
TimezoneInfo tzi = iCalReader.getTimezoneInfo();
Thank you for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When parsing an iCal, how can I find if VEvent is an all day event?
There's nothing in the iCalendar specification that allows you to flag an event as an "all-day" event. You have to just look at the start and end dates, and judge for yourself. I think most iCalendar consumers consider an event to be "all-day" if the start and end dates are 1 day apart. Something like this:
View and moderate all "Help and Support" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thanks for the iCal parser. It will save me a ton of work. I have a couple of questions (which I also asked in an earlier question I had posted in response to your answer. So, feel free to skip it if you get to those first).
ICalReader iCalReader = new ICalReader(f);
TimezoneInfo tzi = iCalReader.getTimezoneInfo();
Thank you for your help.
There's nothing in the iCalendar specification that allows you to flag an event as an "all-day" event. You have to just look at the start and end dates, and judge for yourself. I think most iCalendar consumers consider an event to be "all-day" if the start and end dates are 1 day apart. Something like this:
You must call "getTimezoneInfo()" after calling "readNext()".
View and moderate all "Help and Support" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thank you for the tip re. time zone. Re. all day event, is this not standard?
X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
No, that is not a standard iCalendar property. Microsoft products probably recognize it, but other iCalendar consumers may not.
View and moderate all "Help and Support" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thank you.