2 messages in com.googlegroups.google-calendar-help-dataapiRe: creating events| From | Sent On | Attachments |
|---|---|---|
| Austin (Google) | 24 Jul 2008 10:17 | |
| Friedrich Roman Gaschler | 24 Jul 2008 10:50 |
| Subject: | Re: creating events![]() |
|---|---|
| From: | Friedrich Roman Gaschler (frit...@gmail.com) |
| Date: | 07/24/2008 10:50:17 AM |
| List: | com.googlegroups.google-calendar-help-dataapi |
hallo !
thanks in advance i'll check that !
thanks a lot !
cheers Am 24.07.2008 um 19:18 schrieb Austin (Google):
Hi,
The calendar creation failure should be okay now, let us know with your account IDs if you are still having troubles.
I assume that you are using the Java client library, so there is a handy way to convert a native Java Date object to Google Data DateTime object -
Date today = new Date(); DateTime datetime = new DateTime(today); System.out.println(datetime.toString());
http://code.google.com/apis/gdata/javadoc/com/google/gdata/data/DateTime.html
Hope that helps, Austin
On Wed, Jul 23, 2008 at 5:00 AM, Fritz <frit...@gmail.com> wrote:
hi there !
the 2 post of mine are quite similar but i need to know that....
well actually i read a post telling me that there is an bug in the api as far as the creation of calendars is concerned. i experienced that problem. i tried to create 10 times a calendar and it worked just 2 time or so ... well i'll wait for the bug fix.
the second thing i couldn't come along with is the creation of events. well the code and all is clear but the start and end time is absolutely weird ! why shall i hand a string but not a object of type date or calendar.
the code snipped provided by your organisation tells me to use this url!
http://www.google.com/calendar/feeds/" +GoogleUserId + "/private/full"
but what if i want to save this event in a specific calendar and which way i have to convert the date to match your needs! aint that code looks good for those converting purposes?
public String convertDate(Date date) { Calendar cal = new GregorianCalendar( TimeZone.getTimeZone("GMT") ); //2006-03-16T00:00:00 yyyy-mm-dd'T'hh:mm:ss SimpleDateFormat formater = new SimpleDateFormat("yyyy-mm- dd'T'hh:mm:ss"); cal.setTime(date); return formater.format( cal.getTime() ).toString(); }
help help please
greetings fritz
--~--~---------~--~----~------------~-------~--~----~
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
goog...@googlegroups.com
To unsubscribe from this group, send email to
goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---




