google calendar api start-min/start-max not returning proper values google calendar api start-min/start-max not returning proper values json json

google calendar api start-min/start-max not returning proper values


The biggest problem here appears to be in your GET syntax. You have keys and values, but no assignment character. In other words, you need equal signs.

Also, you need leading 0s and to remove that pesky %20.

Try this:

http://www.google.com/calendar/feeds/developer-calendar@google.com/public/full?alt=json&singleevents=true&sortorder=ascending&start-min=2011-01-01T00:00:00&start-max=2011-02-20T23:59:59


In the URL you posted, you have (extracted):

start-min2011-1-01T00:00:00%20&start-max2011-2-20T23:59:59

That should really be:

start-min=2011-01-01T00:00:00&start-max=2011-02-21T00:00:00

You're missing "=" characters, and the month values should be 2-digit numbers. The "start-max" value is exclusive, which is convenient because you don't have to do that "23:59:59" stuff; just use midnight of the following day.