Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Java in General
Locale and dates question
Chase Bonham
Ranch Hand
Posts: 50
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Does anyone know what date formats (MM/dd/yyyy or dd/MM/yyyy or yyyy/MM/dd etc..)
the following locales use
Locale.CANADA_FRENCH
Locale.CANADA
Locale.UK
Jean-Francois Briere
Ranch Hand
Posts: 101
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Simple way to find out is to code it:
System.out.println(DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.CANADA_FRENCH).format(new Date())); System.out.println(DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.CANADA).format(new Date())); System.out.println(DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.UK).format(new Date()));
Gives:
2006-09-22
22-Sep-2006
22-Sep-2006
Regards
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSTL <fmt:parseDate>
db2 year 2000 invalid date
convert a String into Date with SimpleDateFormat
How to fetch Date Field from excel sheet in Java
[log4j] DailyRollingFileAppender
More...