🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How can I set a Date object to the current system date/time?

#7678
From: John McGrath TeamB
Date: Fri, 25 May 2001 07:25
21 lines
1346 bytes
On Thu, 24 May 2001 10:00:15 -0500, Blake Versiga wrote:

> How can I set a Date object to the current system date/time?
> 
> I use the following
> 
> Date currentDate = new Date();
> 
> but later in the app I want to update the variable currentDate
> to the system date at that new point in time.

   currentDate.setTime( System.currentTimeMillis() );

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.1577cd1c48c57e3598a220@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!news.boerde.de!dnews
References: <3b0d2202$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1387022b6f93159f
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-25 00:44:01 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: How can I set a Date object to the current system date/time?
Date: Fri, 25 May 2001 03:25:47 -0400
Message-ID: <MPG.1577cd1c48c57e3598a220@forums.borland.com>
References: <3b0d2202$1_1@dnews>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 990775546 209.92.40.60 (25 May 2001 00:25:46 -0700)
Lines: 21
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!news.boerde.de!dnews