I am very new to javascript programming, particularly with the google API.
I am attempting to write an application to grab only one day's worth of events from a calendar, but am having trouble with the setMinimumStartTime function in the google API
setMinimumStartTime takes as a parameter a DateTime, but I can't create a DateTime.
Reading online, it would seem that I have to import certain libraries from google, but I am unfamiliar with the syntax to do this.
I have the following at the head of my html file:
Basically, to grab today's events, I put in a MinimumStartTime of today, in the format 'YYYY-MM-DD' and the MaximumStartTime of tomorrow 'YYYY-MM-DD', both are passed as strings. The max time seems to take, but I get all events starting with 24 hours before the present time.
I would appreciate any thoughts or direction.
Thanks,
flub
I am attempting to write an application to grab only one day's worth of events from a calendar, but am having trouble with the setMinimumStartTime function in the google API
setMinimumStartTime takes as a parameter a DateTime, but I can't create a DateTime.
Reading online, it would seem that I have to import certain libraries from google, but I am unfamiliar with the syntax to do this.
I have the following at the head of my html file:
Code:
<script type="text/javascript" src="[URL unfurl="true"]http://www.google.com/jsapi"></script>[/URL]
Basically, to grab today's events, I put in a MinimumStartTime of today, in the format 'YYYY-MM-DD' and the MaximumStartTime of tomorrow 'YYYY-MM-DD', both are passed as strings. The max time seems to take, but I get all events starting with 24 hours before the present time.
I would appreciate any thoughts or direction.
Thanks,
flub