This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Showing proper date format on client's browser  RSS feed

 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a text field where I display a default date in dd-MMM-yy format. On Windows computers with a French locale and settings instead of the date showing up as 08-Feb-06 it shows 08-fevr.-06. Can I enforce an English date name somehow? Thanks in advance.
 
Tim Holloway
Bartender
Posts: 18710
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but I'd have to RTFM. However, it's generally considered to be more polite to conform to the user's locale settings. That way they can adjust them to whatever format they're most comfortable with.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!