aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes date time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "date time" Watch "date time" New topic
Author

date time

rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
how to display the date format based on the Regional in the JTable


MRK
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

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


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
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

Joined: Jul 26, 2007
Posts: 9993
    
    7

Did you go through the API?
What have you tried out so far?
Karthick Dharani Vidhya
Ranch Hand

Joined: Feb 23, 2008
Posts: 88
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?


Karthick D V
rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
yes karthick your correct
i want like that only
Karthick Dharani Vidhya
Ranch Hand

Joined: Feb 23, 2008
Posts: 88
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
 
subject: date time
 
Similar Threads
Another format check :P
Head First Design Patterns Release Date
about dataBase books
WA #1.....word association
How can I get sysdate in java?