🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Another Date problems

#8232
From: Russell
Date: Mon, 16 Apr 2001 07:17
23 lines
1609 bytes
 Hi all, 

   I am using  RedHat6.1 , jdk1.3 and jbuilder3.5.

   I cannot figure out how to know which day is Sunday for specific
month.

   For example below is the code:

     Calendar cal = Calendar.getInstance() --> get current date 
     System.out.println(cal.get(Calendar.MONTH);
     System.out.println(cal.get(Calendar.DAY_OF_MONTH);
     
   In above example , the month is April , so 1,8,15,22,29 is Sunday. I
need to 
   display different color in my calendar jsp for these days.
   However i have checked in java Calendar classes , there are no method
which will retrieve the value of the day.

   Anybody know how to get day value from month??

   Thanks very much. wt.
Technical Details
Message-ID: <3ADA9CA6.34E94552@cesma.com.sg>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!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,3d8d20e7c3a33d9,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-16 00:16:03 PST
Message-ID: <3ADA9CA6.34E94552@cesma.com.sg>
Date: Mon, 16 Apr 2001 15:17:58 +0800
From: Russell <weetat@cesma.com.sg>
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.13-0.13 i686)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Another Date problems
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 203.126.155.39
X-Trace: dnews 987404919 203.126.155.39 (16 Apr 2001 00:08:39 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews