[gwt-contrib] Re: Enhancement: DateTimeFormat: Add format/formatYear parameter to guess century on yyyy

2018-03-24 Thread Cy Kilbourn
If you use the "yy" pattern instead, the default behavior will be to guess the year based on the 20 yrs forward, 80 yrs back logic. On Wednesday, December 1, 2010 at 8:46:03 AM UTC-5, HerrB92 wrote: > > Hi, > > I'm sorry, I don't know if there is and this is the right place to > place an enhanc

[gwt-contrib] Re: Enhancement: DateTimeFormat: Add format/formatYear parameter to guess century on yyyy

2010-12-02 Thread jhulford
HerrB, if you're using a DateBox you can pretty easily get the behavior you're after by providing your own implementation of the DateBox.Format interface to the DateBox constructor. Your implementation can pretty much just be a simple wrapper around the Default one that adjusts the century to be 2

Re: [gwt-contrib] Re: Enhancement: DateTimeFormat: Add format/formatYear parameter to guess century on yyyy

2010-12-01 Thread John Tamplin
On Wed, Dec 1, 2010 at 11:50 AM, HerrB92 wrote: > Err, yes ... I don't ever want a 2-digit year, also. > > I have people, that enter "10" and expect to get "2010". Currently, > you will get "0010" (with a "" pattern). > > But I think, I get the point: If there is textfield and a user enters >

[gwt-contrib] Re: Enhancement: DateTimeFormat: Add format/formatYear parameter to guess century on yyyy

2010-12-01 Thread HerrB92
Err, yes ... I don't ever want a 2-digit year, also. I have people, that enter "10" and expect to get "2010". Currently, you will get "0010" (with a "" pattern). But I think, I get the point: If there is textfield and a user enters 1.1.10 and default date parsing is used (pattern "dd.MM."