fh.global.util.date
Class DateFactory

java.lang.Object
  extended by fh.global.util.date.DateFactory

public class DateFactory
extends java.lang.Object


Constructor Summary
DateFactory()
           
 
Method Summary
static java.lang.Integer[] generateDayList()
          This method generates the list of days for the logest month (ie a month with 31 days in it)
static java.lang.Integer[] generateDayList(int monthno)
          This method will return an array of Integers listing all the days that can exist in the passed month, (ie 30 days for April month 4), this does not work with leap years and will always return 28 for febuary
static MonthBean[] generateMonthList()
          This method gets an array of the months (1-12) with the month numbers set (not the month names)
static java.lang.Integer[] generateYearList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFactory

public DateFactory()
Method Detail

generateMonthList

public static MonthBean[] generateMonthList()
This method gets an array of the months (1-12) with the month numbers set (not the month names)


generateDayList

public static java.lang.Integer[] generateDayList(int monthno)
This method will return an array of Integers listing all the days that can exist in the passed month, (ie 30 days for April month 4), this does not work with leap years and will always return 28 for febuary

Parameters:
monthno - The number of the month to generate the list for (ie 4 for April)

generateDayList

public static java.lang.Integer[] generateDayList()
This method generates the list of days for the logest month (ie a month with 31 days in it)


generateYearList

public static java.lang.Integer[] generateYearList()