For day of the week, you can use DateFormat.
For week of the year, you could look at the gap from Jan 1 to the date, look at the difference and then adjust to ensure you are counting weeks.
Java Date is a mess. An abomination. But Calendar was even worse and you'd never use it in performance code. (curses to you who was born in the 0th month!). I'm predicting that GWT team will port Joda someday. There's an attempt called Goda - but it seems dead.
Most people I've spoken with have their own little library of hacks using Date and DateFormat.
Tom
On Thu, Sep 1, 2011 at 2:09 AM, md <matthias_dehner@gmx.de> wrote:
Thanks geert3 for your answer, and sorry for my late reply!
I didn't found something helpfull and made (in the end) a workaround
with a GWT RPC... so let the server do the stuff.
Definetely not a good solution, but it works.
Thanks alot for your help!
On 23 Aug., 21:10, geert3 <geert.coelm...@gmail.com> wrote:
> There are some 3rd party Calendar replacements out there, search GWT
> Calendar Class.
> i tried one and it worked, but had massive performance hit on first use.
> Maybe today others are better but I managed to do without anyway.
> Perhaps silly but could you make a server call and let the server do it?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment