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]> 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! > > > > > On Thursday, April 30, 2015 at 10:44:43 AM UTC-7, Sergey wrote: >> >> No, I'm saying that you would leave the ValueType as it is (as DATE), and >> use the Date String representation. As far as I can tell, the table doesn't >> do any type checking. However, it also looks like there's >> a com.google.visualization.datasource.datatable.value.DateValue. Is there a >> reason you're not using that? >> >> >> -- > 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. > -- 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.
