File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes PC locale date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "PC locale date" Watch "PC locale date" New topic

PC locale date

Ve Ku

Joined: Sep 17, 2010
Posts: 19
really not sure this is the right place to post this, but i am working with struts, so...don't kill me
So my question is: I have a site, and in that site i have integrated jQuery datepicker. Imagine, there is a user, who made his local settings, on his own PC, so the week, begins from Sunday for example. Is it possible, somehow, my site to recognise this and my datepicker to display the week beginning from Sunday ?
Shashank Ag
Ranch Hand

Joined: Dec 22, 2009
Posts: 88

why are you not using <s:datetimepicker> instead? You will not take care of al this.

SCJP 91%, SCWCD 97%
Ve Ku

Joined: Sep 17, 2010
Posts: 19
because it's important to be a good looking , real calendar, not a dropdown. I think i have a partial solution of the problem, may be i can get the language from the header of the browser, which the browser takes from the local settings.
I agree. Here's the link:
subject: PC locale date
It's not a secret anymore!