🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Get current date

#17127
From: Ken Fishkin
Date: Fri, 11 Dec 1998 00:00
20 lines
1100 bytes

Michael Nguyen wrote:

> Franck,
>
> The problem is that getTime (0 includes hour, minutes, and seconds as well.
> So I wont' be able to compare just the dates but not the time.
> A sample output of date from getTime is
>
> Thu Dec 10 18:03:43 PST 1998
>
> To clear the hour, minutes, and seconds....

could you pass the 2 Dates to a DateFormat object set up to use FULL resolution
on the date,
and SHORT resolution on the time, and then compare their string
representations?

-ken
Technical Details
Message-ID: <367160FE.EF8DFE2A@parc.xerox.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <366F13D2.11F2FBB9@home.com> <366F5A12.DF3930B6@netspin.co.uk> <36707E8F.B86A1CD3@home.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f08bdc690f36e25a
X-Google-Attributes: gidf74b3,public
From: Ken Fishkin <fishkin@parc.xerox.com>
Subject: Re: Get current date
Date: 1998/12/11
Message-ID: <367160FE.EF8DFE2A@parc.xerox.com>
X-Deja-AN: 421259683
Content-Transfer-Encoding: 7bit
References: <366F13D2.11F2FBB9@home.com> <366F5A12.DF3930B6@netspin.co.uk> <36707E8F.B86A1CD3@home.com>
Content-Type: text/plain; charset=us-ascii
Organization: Xerox PARC
Mime-Version: 1.0
Reply-To: fishkin@parc.xerox.com
Newsgroups: borland.public.jbuilder.java.language