Article View: borland.public.jbuilder.java.api
Article #2487Re: Formating of Dates in Military Time
From: John McGrath TeamB
Date: Wed, 15 Nov 2000 00:00
Date: Wed, 15 Nov 2000 00:00
18 lines
1052 bytes
1052 bytes
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:
<MPG.147bf2ed9c54e1d4989d1e@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3a116172$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,5ae111b47b541898 X-Google-Attributes: gid1089d0,public From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Subject: Re: Formating of Dates in Military Time Date: 2000/11/15 Message-ID: <MPG.147bf2ed9c54e1d4989d1e@forums.borland.com> X-Deja-AN: 693815224 References: <3a116172$1_1@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.api