Gets the first date corresponding to a given day of week
starting with a given date. For example, this
method could be used to find the next Sunday.

getCount

public int getCount(java.util.Date date,
int scale)

Parameters:

date - the input date

scale - scale for determining date count

For internal use only. Application developers should not use this

Gets the date "count" for a given scale.
For "days" it will be the day of week, 0-6 starting with
the first day of the week, which is based on locale if not
explicitly set; for "weeks" it will be
the week of month, 0-4; for "months" it will be the month of year, 0-11;
for "quarters" it is the quarter of year, 0-3;
for "half years" it is the half of year, 0-1; and for "years" it is always 0