Article View: borland.public.jbuilder.java.language
Article #14635Re: How to get system date?
From: Stephan Grimm
Date: Mon, 09 Aug 1999 00:00
Date: Mon, 09 Aug 1999 00:00
49 lines
1761 bytes
1761 bytes
--------------70D16B0CD072154271C52E65
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Try something like this:
Date currentDate=new Date(System.currentTimeMillis());
SimpleDateFormat formatter= new SimpleDateFormat ("yyyy.MM.dd G 'at'
hh:mm:ss a zzz");
formatter.format(currentDate).toString();
--
-Stephan Grimm-
<Stephan.Grimm@mgm-edv.de>
<grst0018@fh-karlsruhe.de>
GERMANY
--------------70D16B0CD072154271C52E65
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Try something like this:
<p><tt> Date currentDate=new Date(System.currentTimeMillis());</tt>
<br><tt> SimpleDateFormat formatter= new SimpleDateFormat
("yyyy.MM.dd G 'at' hh:mm:ss a zzz");</tt>
<br><tt> formatter.format(currentDate).toString();</tt>
<br><tt></tt>
<br><tt></tt>
<p>--
<br>
<br>
<p>-Stephan Grimm-
<p><Stephan.Grimm@mgm-edv.de>
<br><grst0018@fh-karlsruhe.de>
<p>GERMANY
<br> </html>
--------------70D16B0CD072154271C52E65--
Technical Details
Message-ID:
<37AED7E8.9C171E0B@mgm-edv.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7om3r2$71i5@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,8bba9e51bdbc5793 X-Google-Attributes: gidf74b3,public From: Stephan Grimm <Stephan.Grimm@mgm-edv.de> Subject: Re: How to get system date? Date: 1999/08/09 Message-ID: <37AED7E8.9C171E0B@mgm-edv.de> X-Deja-AN: 510592384 References: <7om3r2$71i5@forums.borland.com> To: HooLee <hoolee@kico.co.jp> X-Accept-Language: de,en Content-Type: multipart/alternative; boundary="------------70D16B0CD072154271C52E65" Organization: mgm Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language