Thank you so much for your interest and response.

I tried to implement what you suggested.

Calendar calTest = new GregorianCalendar(TimeZone.getDefault());
calTest.setTime(new 
Date(entry.getTimes().get(0).getStartTime().getValue()));

System.out.println(TimeZone.getDefault().toString());    returns 

 
sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]


The following shows that the correct date is returned from toUIString  Aug 
29th but even with the timezone constructor I am getting a date of Aug 28th, 
a day early

entry.getTimes().get(0).getStartTime().toUiString() is 2010-08-29
    tz shift = null 
  temp.format(new Date(entry.getTimes().get(0).getStartTime().getValue() 
 August28, 2010 
 Gregorian calTest.get(Calendar.DAY_OF_MONTH)    28



Since I know I need the toUIString date (from the online calendar itself) I 
am doing this:

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
dt = sdf.parse(entry.getTimes().get(0).getStartTime().toUiString());
Calendar cal = Calendar.getInstance();
cal.setTime(dt);

This works , but really want to know why the date from value isnt working.
Any more ideas

Thanks,
Dave




-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to