Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: SimpleDateFormat Date: Sun, 04 Sep 2011 22:30:42 -0400 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 5 Sep 2011 02:30:43 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="f8igmItKsWs6nM5YanFxAA"; logging-data="26411"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dCp+a9giUUFX4lhagtuc8" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 In-Reply-To: Cancel-Lock: sha1:a5MZFor3OPPAwl+BFsWA+Wh16lg= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7566 On 9/4/2011 9:22 PM, Eric Sosman wrote: > On 9/4/2011 9:14 PM, bob wrote: >> Anyone know how to use SimpleDateFormat to get a lowercase am and pm? > > You could use String.toLowerCase() on the whole thing, at the > risk of turning "Fri" into "fri". (If you're super-worried, you could > use a regex to locate the AM/PM and apply toLowerCase() only to that > portion.) Or you could extend the class. Other than that, I can't > think of anything. Never mind; see Arne Vajhøj's response. -- Eric Sosman esosman@ieee-dot-org.invalid