Article View: borland.public.jbuilder.java.api
Article #2421Re: Formating of Dates in Military Time
From: Matt Connors
Date: Tue, 21 Nov 2000 00:00
Date: Tue, 21 Nov 2000 00:00
28 lines
1438 bytes
1438 bytes
John, That's exactly what I was looking for. I was unaware of the SimpleDateFormat class. Thank you, Matt "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.147bf2ed9c54e1d4989d1e@forums.borland.com... > On Tue, 14 Nov 2000 10:59:35 -0500, Matt Connors wrote: > > > I have a java.util.Date object and would like to format > > it in Military time (24 hour format) for string output. > > I figured I'd use the DateFormat object but it doesn't > > seem to produce a string in 24 hour format. Can anyone > > out there help me ? An example would be very usefull. > > DateFormat df = new SimpleDateFormat( "HH:mm:ss" ); > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3a1a790e$1_2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3a116172$1_1@dnews> <MPG.147bf2ed9c54e1d4989d1e@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,5ae111b47b541898 X-Google-Attributes: gid1089d0,public From: "Matt Connors" <connorsm@broadbandoffice.com> Subject: Re: Formating of Dates in Military Time Date: 2000/11/21 Message-ID: <3a1a790e$1_2@dnews> X-Deja-AN: 696159148 References: <3a116172$1_1@dnews> <MPG.147bf2ed9c54e1d4989d1e@forums.borland.com> X-Trace: 21 Nov 2000 05:30:54 -0800, 64.47.92.108 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.api X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700