🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#7770
From: Blake Versiga
Date: Thu, 24 May 2001 15:00
12 lines
1218 bytes
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.

How can I do this?

Thanks, Blake
Technical Details
Message-ID: <3b0d2202$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1387022b6f93159f,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-24 08:23:19 PST
Reply-To: "Blake Versiga" <bversigaREMOVETHIS@wyndham.com>
From: "Blake Versiga" <bversiga@wyndham.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: How can I set a Date object to the current system date/time?
Date: Thu, 24 May 2001 10:00:15 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 204.42.12.13
Message-ID: <3b0d2202$1_1@dnews>
X-Trace: dnews 990716418 204.42.12.13 (24 May 2001 08:00:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews