The date five hours before midnight today is yesterday.
On Tue, Apr 5, 2011 at 6:12 AM, David Cohen <[email protected]> wrote:
> Still cant get it
>
> Date dt = sdf.parse(entry.getTimes().get(0).getStartTime().toUiString());
> Calendar cal = Calendar.getInstance();
> Calendar calTest = new
> GregorianCalendar(TimeZone.getTimeZone("America/New_York"), Locale.US);
> calTest = Calendar.getInstance();
> calTest.setTime(new
> Date(entry.getTimes().get(0).getStartTime().getValue()));
> cal.setTime(dt);
>
> calTest always comes out one day early for me
>
> cal is 2011-04-02 calTest is 2011-04-01
>
> --
> 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
>
--
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