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


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

Re: SimpleDateFormat

From Eric Sosman <esosman@ieee-dot-org.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: SimpleDateFormat
Date 2011-09-04 22:30 -0400
Organization A noiseless patient Spider
Message-ID <j41c8j$ppb$1@dont-email.me> (permalink)
References <d25d19e9-5818-4e42-a035-3da993ac56d0@z8g2000yqe.googlegroups.com> <j4188n$8fi$1@dont-email.me>

Show all headers | 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