🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Calendar help (Days of Month)

#17550
From: Johan
Date: Fri, 30 Oct 1998 00:00
10 lines
694 bytes
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: <01be03f0$3f3317e0$6bcc79c0@pc4107.stmf.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3bd436b7dd5bc64c,start
X-Google-Attributes: gidf74b3,public
From: "Johan" <urk@slem.se>
Subject: Calendar help (Days of Month)
Date: 1998/10/30
Message-ID: <01be03f0$3f3317e0$6bcc79c0@pc4107.stmf.se>
X-Deja-AN: 406631921
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language