Ohh I forgot to say... I understand I technically shouldn't change those dates since they are meant to be set by Google.
Even so, I need to set them myself since I use those fields to compare event between this calendar and Outlook. And it is very important to me since the creation date is the only way to safely distinguish events, plus, I'm supplying the date when the event was first published in Outlook. Thank you On May 5, 6:54 pm, jcgnu <[EMAIL PROTECTED]> wrote: > Hello. > > I need to be able to set the updated and published dates of a new or > an existing event in Google Calendar using Java. I've seen two methods > that should do it: setPublished and setUpdated. The problem is that it > doesn't work. While it does compile, it doesn't respect the dates I'm > supplying... Please, if someone can help me I will really appreciate > it! Thanks! > > Part or my code: > > CalendarEventEntry myEntry = new CalendarEventEntry(); > DateTime creationDate = > formatDate(eventos[i].getCreacionAnio(),eventos[i].getCreacionMes(), > > eventos[i].getCreacionDia(),eventos[i].getCreacionHora(),eventos[i].getCrea > cionMinutos(), > eventos[i].getCreacionSegundos()); > DateTime updateDate = > formatDate(eventos[i].getModificacionAnio(),eventos[i].getModificacionMes() , > > eventos[i].getModificacionDia(),eventos[i].getModificacionHora(),eventos[i] > .getModificacionMinutos()); > ... > myEntry.setPublished(creationDate); > myEntry.setUpdated(updateDate); > ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
