🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7674

How do I change the default format string of a Locale?

#7674
From: Daniel Spiess
Date: Thu, 24 May 2001 19:52
11 lines
1450 bytes
I need to change the date/time pattern for a locale.

I know you can use the SimpleDateFormat object to specify a pattern, but I
would like to change the pattern for a locale so that the locale uses the
pattern I specify, not the default.

In particular the en_US locale specifies the date format to be M/d/yy.  I
would like the US locale format to be MM/dd/yyyy.

Thanks!
Daniel Spiess
Technical Details
Message-ID: <3b0d669c$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2a6337d296e50c30,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-24 13:16:01 PST
Reply-To: "Daniel Spiess" <dspiess@genomica.com>
From: "Daniel Spiess" <dspiess@genomica.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: How do I change the default format string of a Locale?
Date: Thu, 24 May 2001 13:52:41 -0600
Lines: 13
Organization: Genomica
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 207.174.76.56
Message-ID: <3b0d669c$1_1@dnews>
X-Trace: dnews 990733980 207.174.76.56 (24 May 2001 12:53:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews