Author
Get first sunday of a month
Dev Anand
Ranch Hand
Joined: Aug 30, 2009
Posts: 40
Hi,
I'm preparing calendar in Java and display events like Friendships day, Mothers day etc.
Friendship day fall on first sunday of August.
I want to get the date of first sunday of a given month.
Can anyone help me in this regard?
Thank you.
Regards
Dev Anand
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32644
What have you do so far?
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
Hint: use java.util.Calendar .
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
nvinod kumarjava
Greenhorn
Joined: Nov 09, 2010
Posts: 1
posted May 31, 2012 09:36:38
0
Hi Dev Anand,
Use following code
[Moderator action: Removed code. @nvinod kumarjava , please DontBeACodeMill .(⇐click) Also removed color. That much color is hard to read.]
Jeff Verdegan
Bartender
Joined: Jan 03, 2004
Posts: 5836
Nvinod Kumarjava, please see your private messages for an important administrative matter.
subject: Get first sunday of a month