🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14635

Re: How to get system date?

#14635
From: Stephan Grimm
Date: Mon, 09 Aug 1999 00:00
49 lines
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>&nbsp;&nbsp;&nbsp; Date currentDate=new Date(System.currentTimeMillis());</tt>
<br><tt>&nbsp;&nbsp;&nbsp; SimpleDateFormat formatter= new SimpleDateFormat
("yyyy.MM.dd G 'at' hh:mm:ss a zzz");</tt>
<br><tt>&nbsp;&nbsp;&nbsp; formatter.format(currentDate).toString();</tt>
<br><tt></tt>&nbsp;
<br><tt></tt>&nbsp;
<p>--
<br>&nbsp;
<br>&nbsp;
<p>-Stephan Grimm-
<p>&lt;Stephan.Grimm@mgm-edv.de>
<br>&lt;grst0018@fh-karlsruhe.de>
<p>GERMANY
<br>&nbsp;</html>

--------------70D16B0CD072154271C52E65--
Technical Details
Message-ID: <37AED7E8.9C171E0B@mgm-edv.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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