Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Error in Ti.Calendar doc?

$
0
0

Hi,

I've been working with Ti.Calendar on iOS for a while now, and have always been able to put events into the calendar.

However, retrieving always was a problem. I always received an empty array from the default calendar. Following the api docs

getEventsInDate( Number year, Number month, Number day ) : Titanium.Calendar.Event[]
Gets events that occur on a specified date.
 
Parameters
year : Number
Year of the events.
month : Number
Month of the events, as a zero-based integer with January at 0 and December at 11.
day : Number
Day of the month of the events.
I always used that zero-based int month. However, this only works when using a one-based int, e.g. 6 for june.

This cost me several hours of discovering, I guessed it by doing some trial and error stuff, which is not the goal of the docs, imo :)


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>