🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

date.getDate()

#8659
From: Michael Kutscher
Date: Tue, 06 Mar 2001 09:55
19 lines
1491 bytes
Hi!

I get warnings, when I cut a date to pieces:

 Date today=new Date();
 int day=today.getDate();
 int month=today.getMonth();
 int year=today.getYear();

All three Methods are warned as depreciated. Never the less, the program
works well.

What are the alternatives to these three get...-methods?

Are there any problems, when I ignore these warnings?

Thanks in advance

Michael
Technical Details
Message-ID: <982ca0$imu$00$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,538b71c3c1e362b0,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-06 02:02:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "Michael Kutscher" <Michael-Kutscher@pc-coach.de>
Newsgroups: borland.public.jbuilder.java.language
Subject: date.getDate()
Date: Tue, 6 Mar 2001 10:55:32 +0100
Organization: T-Online
Lines: 23
Message-ID: <982ca0$imu$00$1@news.t-online.com>
Reply-To: "Michael Kutscher" <Michael-Kutscher@pc-coach.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 983872640 00 19166 0P22eIESN-NjI 010306 09:57:20
X-Complaints-To: abuse@t-online.com
X-Sender: 053149969-0001@t-dialin.net
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