943,748 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1908
  • Java RSS
Aug 6th, 2008
0

Help me to get the loCale

Expand Post »
Sir,

is there any method which return the Local on giving a date as argument.

publlic Locale getLocale(Date d){
//
return locale
}

help me to get the locale.


Please help me to get the locale on giving the date.Ie when i give us date,i need to get US.

Please help .....
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006
Aug 6th, 2008
0

Re: Help me to get the loCale

You can use the Locale to parse a certain Date object:

SimpleDateFormat.html

And use the constructor with the Locale as argument.

Java Syntax (Toggle Plain Text)
  1. SimpleDateFormat(/*String pattern*/ "dd/MM/yyyy", Locale.ENGLISH)

But I don't think that what you are asking is possible.
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,258 posts
since Dec 2007
Aug 7th, 2008
0

How to get Date format of different countries

Hi Friends,

Please help me to find out the different date format of the countirs, ie MM/dd/YYYY is the dateformats of US and dd/MM/YYYY is for india.lke this i want to compare a date with all the dateformats avaliable in our Computer.
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006
Aug 26th, 2008
0

DatePicker

Can any one send me a link to to download a Datepicker for my swing based application.The date picker must support the default locale.ie when i give a US date ,It must be shown as the defult locale date format ?please help me...

Also can any one help me to convert the US date to all other date formats.
For eg:

when i give setDate("05/01/2008"); //Usdate MM/dd/yyyy
the i must get the date in all different formats like dd/mm/yyyy,yyyy/dd/mm etc..

Please help me to solve this issue
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: What is the code for exponent in java?
Next Thread in Java Forum Timeline: painting images and playing sounds at the same time???





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC