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 21:22:19 -0400 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 5 Sep 2011 01:22:31 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="f8igmItKsWs6nM5YanFxAA"; logging-data="8690"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19G2fbGge+bW0z9gol9bAns" 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:obxyxb5CKENHIQH4crHxqUk5WS8= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7564 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. -- Eric Sosman esosman@ieee-dot-org.invalid