Merhaba Alp Bey,
Sorununuzu anladım fakat, kod olarak neyi nasıl kullandığınızı
yazınızdan çıkaramadığım için konuyla alakalı bildiğim her şeyi
yazmaya çalışıcağım,
Eğer kullandığınız widget direk DatePicker ise bu widget değer olarak
zaten Date döndürür, gwt-ext'in DateUtil sınıfını kullanarak bu date'i
istediğiniz gibi render edebilirsiniz:
DateUtil.format(date, "d/m/Y");
Eğer DateField kullanıyorsanız, DateField'ın formatını
ayarlamalısınız:
DateField df =new
df.setFormat("d/m/Y");
Yok DatePicker Editable Gridin içerisinden çağrılıyor ise Grid'in
ilgili kolonunu tanımlarken parametre olarak renderer
tanımlamalısınız. Şu an kendi kodum yanımda olmadığı için, yanıltmamak
adına örnek yazmıyorum ama zaten gwt-ext forumlarında aratırsanız
rahatça bulabilirsiniz.
Umarım sorunuzu doğru anlamışımdır. Başka sorunuz var ise, biliyor
isem memnuniyetle yanıtlarım
İyi çalışmalar.
barraQda
Alp Timurhan Çevik yazdı:
> Hello,
>
> I have a problem regarding dateformat in datepicker.
>
> From
> http://groups.google.fr/group/gwt-ext/browse_thread/thread/a6fa8aa9cbd02358,
> the dateformat used for datepicker is not the one used in gwt.
>
> The problem is, the format depends very much on the locale being used.
> In most of the eu countries, the date is written as d/m/y where as us
> uses it as m/d/y, thus developing an application with i18n in mind,
> both formats are invalid for a user which is in a different locale.
> Finding out the user's locale format and setting the string
> accordingly could be a solution, but a very inefficient one.
>
> The best scenario, like java's built in or gwt's, the format should be
> defined according to the users locale (although the gwt one is also
> missing some formats, so it is not complete, one digit day is rendered
> like 11/1/08 and if you would like to have 11/01/08 then it is tough
> to do that. The need for this arises especially in grids, the one
> digit days are not aligned with others, making it tough to read and
> decreases usability.)
>
> Am I missing something ? Is there any mechanism (which I could not
> figure out) to use ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---