Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

Japanese Locale and SimpleDateFormat

Thread view: 
sameergn@gmail.com - 23 Jun 2005 21:57 GMT
Hi,

The code

SimpleDateFormat formatter = new SimpleDateFormat ("dd/MMM/yyyy", new
Locale("ja", "JP"));
System.out.println("Date = " + formatter.format(new Date()));

prints date in the format 23/6/2005.

Can we not get 3 char month name in Japanese locale?
Does the Japanese language have 3 character month names?

Thanks,
Sameer.
Pete Barrett - 24 Jun 2005 18:53 GMT
>Hi,
>
[quoted text clipped - 8 lines]
>Can we not get 3 char month name in Japanese locale?
>Does the Japanese language have 3 character month names?

Since Japanese uses about 5 different writing systems, I would doubt
it! At least without further narrowing the Locale.

I suppose though, that you have checked that Japanese resources are
available on your computer to use in a Japanese locale? If they're not
available, they can't be used, though the Locale will still be
created. In that case, what you have may the best it can manage.

Pete Barrett
sameergn@gmail.com - 27 Jun 2005 17:12 GMT
> >Hi,
> >
[quoted text clipped - 18 lines]
>
> Pete Barrett

Thanks for your reply.
I found this page which says that Japan does not use month names as
such.
http://www.sf.airnet.ne.jp/~ts/japanese/monthday.html
We checked with our Japanese clients and they are ok with using a digit
instead of 3 letter month name.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.