This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

date time

 
rama krishnan
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to display the date format based on the Regional in the JTable
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by muthurama krishnan:
how to display the date format based on the Regional in the JTable


Check out the DateFormat in which you can specify the required Locale
 
rama krishnan
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the date format i did the date time function

but i want automatic change date format based on the Regional

example

if regional is us it should display us date format
if its japan it should diplay japan date format
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you go through the API?
What have you tried out so far?
 
Karthick Dharani Vidhya
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May i know what the issue is?

1. How to find the system locality/zone?
2. How to set the formatter for a particular locality?

Are these two your problems?
 
rama krishnan
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes karthick your correct
i want like that only
 
Karthick Dharani Vidhya
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I hope the following would help.



1. TimeZone.getDefault() will give you the TimeZone on the Machine where the code is running.
2. Setting the timeZone for the formatter should format you the date in that TimeZone.

If not, just post your code.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic