File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
first monday of any month...
Joined: Feb 13, 2004
Jul 09, 2004 22:16:00
Can anyone tell me about how to find the date of 1st Monday of a month..
Joined: Dec 10, 2001
Jul 09, 2004 22:31:00
Take a look at
the Calendar class
. Don't hesitate to post more questions.
How To Ask Good Questions
JavaRanch FAQ Wiki
Joined: Jun 09, 2003
Jul 10, 2004 00:03:00
Set the calendar to the first of the month
determine the DAY_OF_WEEK
use add() to deduct DAY_OF_WEEK, and add 2
if DAY_OF_WEEK > 2 add another 7
I agree. Here's the link:
subject: first monday of any month...
Your most hated word
First day of the first week of the month
Java Calender -- need help
Can i get month in words( eg:January) using Date,Calendar or GregorianCalendar API
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015