🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Calendar help (Days of Month)

#17562
From: Kevin Korach
Date: Sat, 31 Oct 1998 00:00
15 lines
999 bytes
Sun has added a getActualMaximum function to the Calendar class in 1.2
to handle this situtation.

Johan wrote:

> I'm going quietly insane trying to figure out how to get the
> number of days in the current month... (jdk1.2)
>
> Calendar cal = Calendar.getInstance();
> cal.getMaximum(cal.DAY_OF_MONTH);
>
> will always return 31, so that's not it.
> getLeastMaximum returns 28, so that's not it either.
>
> Anyone?
Technical Details
Message-ID: <363B74C7.84972D3D@swebs.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01be03f0$3f3317e0$6bcc79c0@pc4107.stmf.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3bd436b7dd5bc64c
X-Google-Attributes: gidf74b3,public
From: Kevin Korach <korach@swebs.com>
Subject: Re: Calendar help (Days of Month)
Date: 1998/10/31
Message-ID: <363B74C7.84972D3D@swebs.com>
X-Deja-AN: 407080404
Content-Transfer-Encoding: 7bit
References: <01be03f0$3f3317e0$6bcc79c0@pc4107.stmf.se>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language