Hi,
To create DateTime object with date string, you need to use the static
method fromIso8601() -
var startDateTime1 = google.gdata.DateTime.fromIso8601('2008-07-01');
Hope that helps,
Austin
On Sat, Jul 12, 2008 at 6:53 AM, sarath <[EMAIL PROTECTED]> wrote:
>
> Hi ,
> I just have a small query,
> I am using google calendar API for my Task.
> Can any tell me when i use the below code i works perfect
> var startDateTime1 = new google.gdata.DateTime('2008-07-01');
> alert(startDateTime1);
> var endDateTime1 = new google.gdata.DateTime('2008-07-30');
> var query = new
> google.gdata.calendar.CalendarEventQuery(calendarUrl);
> query.setOrderBy('starttime');
> query.setSortOrder(ascendingOrder);
> query.setMinimumStartTime("2008-07-01");
> query.setMaximumStartTime("2008-07-30");
>
> But
> when i give
> query.setMinimumStartTime(startDateTime1 );
> query.setMaximumStartTime(endDateTime1);
>
> I gives me any error Like "Object does not support", I am using
> Javascript and i gave an alert msg and checked
> startDateTime1 ,endTime1 are object ....How can i convert this to a
> string to work perfect.Please help me i have my release on Monday
> (18/07/2008)
>
> regards
> sarath
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---