Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with google API

Status
Not open for further replies.

flubbard

Technical User
Jun 11, 2003
148
US
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:
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top