This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Default Date Separator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Default Date Separator" Watch "Default Date Separator" New topic

Default Date Separator

Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 282
Is there a way to directly obtain the default date separator character? I had thought it would be provided via the class DateFormatSymbols similar to the way the grouping and decimal separators are provided via the class DecimalFormatSymbols. I know I could obtain the value indirectly by creating a date and parsing the short format but it seems there should be an easier way?
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
There is no such property. The date format depends on the Date class implementation. You can convert date in to any format convenient to your application.
I agree. Here's the link:
subject: Default Date Separator
Similar Threads
Date object
replaceAll method of String class
How to use user Defined separator in JPopupMenu instead of addSeparator() provided by Java Swing
Formating this: #,#####.### to this: #####.####