I was not able to get it to work using java.util.GregoricanCalendar. But somehow works with com.ibm.icu.util.GregorianCalendar;
I needed to write all that for my code. I just simplified the example below. On Thursday, April 30, 2015 at 11:39:26 AM UTC-7, Sergey wrote: > > I'm confused. Your first statement said that it worked, and then your > second statement said that it did not work. Looking at the code, it doesn't > seem like you have to go through all of that. You should be able to just do > new DateValue(year, month, day). > > On Thu, Apr 30, 2015 at 2:21 PM da <[email protected] <javascript:>> > wrote: > >> Sergey, >> >> I tried that and it worked! >> >> import com.ibm.icu.util.GregorianCalendar; >> import com.ibm.icu.util.TimeZone; >> ... >> >> GregorianCalendar cal = new GregorianCalendar(); >> cal.setTime(new Date()); >> cal.setTimeZone(TimeZone.getTimeZone("GMT")); >> row.addCell(new DateValue(cal)); >> >> >> Note: The row.addCell does not work when using >> java.util.GregoricanCalendar. See import statements. >> >> Thank you! >> >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
