Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7566

Re: SimpleDateFormat

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 <esosman@ieee-dot-org.invalid>
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 <j41c8j$ppb$1@dont-email.me> (permalink)
References <d25d19e9-5818-4e42-a035-3da993ac56d0@z8g2000yqe.googlegroups.com> <j4188n$8fi$1@dont-email.me>
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 <j4188n$8fi$1@dont-email.me>
Cancel-Lock sha1:a5MZFor3OPPAwl+BFsWA+Wh16lg=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7566

Show key headers only | View raw


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.

     <!Dope slap!>

     Never mind; see Arne Vajhøj's response.

-- 
Eric Sosman
esosman@ieee-dot-org.invalid

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

SimpleDateFormat bob <bob@coolgroups.com> - 2011-09-04 18:14 -0700
  Re: SimpleDateFormat Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-04 21:22 -0400
    Re: SimpleDateFormat Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-04 22:30 -0400
  Re: SimpleDateFormat Arne Vajhøj <arne@vajhoej.dk> - 2011-09-04 22:18 -0400
  Re: SimpleDateFormat Roedy Green <see_website@mindprod.com.invalid> - 2011-09-05 11:12 -0700
    Re: SimpleDateFormat Lew <lewbloch@gmail.com> - 2011-09-05 13:11 -0700
      Re: SimpleDateFormat Roedy Green <see_website@mindprod.com.invalid> - 2011-09-05 15:57 -0700
        Re: SimpleDateFormat Arne Vajhøj <arne@vajhoej.dk> - 2011-09-05 19:38 -0400
        Re: SimpleDateFormat Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-05 19:38 -0400
          Re: SimpleDateFormat Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 18:27 -0700
            Re: SimpleDateFormat Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-14 21:38 -0400
              Re: SimpleDateFormat RedGrittyBrick <RedGrittyBrick@spamweary.invalid> - 2011-09-15 14:32 +0100
        Re: SimpleDateFormat markspace <-@.> - 2011-09-05 16:49 -0700
        Re: SimpleDateFormat Lew <lewbloch@gmail.com> - 2011-09-05 17:34 -0700
    Re: SimpleDateFormat Arne Vajhøj <arne@vajhoej.dk> - 2011-09-05 16:37 -0400

csiph-web