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


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

Re: SimpleDateFormat

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: SimpleDateFormat
Date Mon, 05 Sep 2011 11:12:35 -0700
Organization Canadian Mind Products
Lines 16
Message-ID <v44a67h81tfvu6evh5o7lm8s5afqjb0ll8@4ax.com> (permalink)
References <d25d19e9-5818-4e42-a035-3da993ac56d0@z8g2000yqe.googlegroups.com>
Reply-To Roedy Green <see_website@mindprod.com.invalid>
NNTP-Posting-Host RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
X-Notice Filtered by postfilter v. 0.8.2
X-Newsreader Forte Agent 6.00/32.1186
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7578

Show key headers only | View raw


On Sun, 4 Sep 2011 18:14:18 -0700 (PDT), bob <bob@coolgroups.com>
wrote, quoted or indirectly quoted someone who said :

>Anyone know how to use SimpleDateFormat to get a lowercase am and pm?

there is no built in code for that. Think instead how to convert your
date/time string AM/PM to am/pm

There various ways you can do it with String.charAt String.indexOf
String.toLowerCase
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, 
the search for a superior moral justification for selfishness.
~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97) 

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