com.pnpconsult.zeiterfassung.util
Class DateUtils

java.lang.Object
  extended bycom.pnpconsult.zeiterfassung.util.DateUtils

public class DateUtils
extends java.lang.Object

Version:
$Id: DateUtils.java,v 1.9 2004/07/22 08:41:28 powerpete Exp $
Author:
M. Petersen

Field Summary
static int FIRST
           
static int LAST
           
static int NO_CHANGE
           
static java.lang.String NO_LABEL
           
static java.lang.String NO_VALUE
           
 
Method Summary
static java.util.Date convertNullToReallyOld(java.util.Date date)
           
static java.util.Date createDate(int billingMonth, int billingYear)
           
static boolean equalsMonth(java.util.Date d1, java.util.Date d2)
           
static java.util.Date firstOfMonth(java.util.Date date)
           
static java.lang.String format(java.util.Date date)
           
static java.lang.String formatWithoutDay(java.util.Date date)
           
static java.util.Date max(java.util.Date date1, java.util.Date date2)
           
static java.util.Date min(java.util.Date date1, java.util.Date date2)
           
static java.util.Collection monthCollection()
           
static java.util.Date parse(java.lang.String str)
           
static java.util.Date toFirst(java.util.Date date)
           
static java.util.Date toLast(java.util.Date date)
           
static java.util.Collection yearCollection(java.util.Date currentDate, int yearsBefore, int yearsAfter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_LABEL

public static final java.lang.String NO_LABEL
See Also:
Constant Field Values

NO_VALUE

public static final java.lang.String NO_VALUE
See Also:
Constant Field Values

NO_CHANGE

public static final int NO_CHANGE
See Also:
Constant Field Values

FIRST

public static final int FIRST
See Also:
Constant Field Values

LAST

public static final int LAST
See Also:
Constant Field Values
Method Detail

format

public static java.lang.String format(java.util.Date date)

parse

public static java.util.Date parse(java.lang.String str)
                            throws java.text.ParseException
Throws:
java.text.ParseException

monthCollection

public static java.util.Collection monthCollection()

yearCollection

public static java.util.Collection yearCollection(java.util.Date currentDate,
                                                  int yearsBefore,
                                                  int yearsAfter)

toFirst

public static java.util.Date toFirst(java.util.Date date)

toLast

public static java.util.Date toLast(java.util.Date date)

formatWithoutDay

public static java.lang.String formatWithoutDay(java.util.Date date)

max

public static java.util.Date max(java.util.Date date1,
                                 java.util.Date date2)

min

public static java.util.Date min(java.util.Date date1,
                                 java.util.Date date2)

firstOfMonth

public static java.util.Date firstOfMonth(java.util.Date date)

equalsMonth

public static boolean equalsMonth(java.util.Date d1,
                                  java.util.Date d2)

createDate

public static java.util.Date createDate(int billingMonth,
                                        int billingYear)

convertNullToReallyOld

public static java.util.Date convertNullToReallyOld(java.util.Date date)


Copyright © 2003-2004 PNP Unternehmensberatung. All Rights Reserved.