The constructor you're trying to call isn't public. Use the static getFormat(String) method instead.
On Fri, Feb 13, 2009 at 3:39 AM, Josse <[email protected]> wrote: > > Hello, I woulds like to create a dateBox with today date into it. But > i want to change de date format and I always got an error. Here what I > do : > > Code : > //Déclaration > private final DateBox dateMisAJour = new DateBox(); > ... > > DateTimeFormat format = new DateTimeFormat("dd/MM/yyyy"); > this.dateMisAJour.setDateFormat(format); > > this.dateMisAJour.getDatePicker().setSelectedDate(new Date()); > this.dateMisAJour.setEnabled(false); > ..... > > this.bandeauMiseAJour.add(dateMisAJour); > > The instanciate of DateTimeFormat always underline "new DateTimeFormat > ("dd/MM/yyyy");" to indicate an error but dont show any proposition. > What it's most weird is that DateTimeFormat take a string as a > parameter. > > Please help ! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
