This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default Date Separator

 
Jay Damon
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic