za.org.coefficient.util.common
Class DateUtil

java.lang.Object
  extended by za.org.coefficient.util.common.DateUtil
All Implemented Interfaces:
java.io.Serializable

public class DateUtil
extends java.lang.Object
implements java.io.Serializable

This is a utility class that manipulates dates

See Also:
Serialized Form

Field Summary
static long DEF_SPREAD
           
(package private) static java.lang.String[] months
           
 
Constructor Summary
DateUtil()
           
 
Method Summary
static java.lang.String getDate(java.util.Date date)
           
static java.lang.String getDay(java.util.Date date)
           
static java.lang.String getDefaultFutureDay()
           
static java.lang.String getDefaultFutureMonth()
           
static java.lang.String getDefaultFutureYear()
           
static java.lang.String getFormattedDate()
           
static java.lang.String getFormattedFutureDate()
           
static java.util.Date getFutureDate(long spread)
           
static java.lang.String getMonth(java.util.Date date)
           
static java.lang.String getTodayDay()
           
static java.lang.String getTodayMonth()
           
static java.lang.String getTodayYear()
           
static java.lang.String getYear(java.util.Date date)
           
static java.util.Date setDate(java.lang.String year, java.lang.String month, java.lang.String day)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEF_SPREAD

public static final long DEF_SPREAD
See Also:
Constant Field Values

months

static java.lang.String[] months
Constructor Detail

DateUtil

public DateUtil()
Method Detail

getFormattedDate

public static java.lang.String getFormattedDate()

getFormattedFutureDate

public static java.lang.String getFormattedFutureDate()

setDate

public static java.util.Date setDate(java.lang.String year,
                                     java.lang.String month,
                                     java.lang.String day)

getDate

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

getDay

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

getDefaultFutureDay

public static java.lang.String getDefaultFutureDay()

getDefaultFutureMonth

public static java.lang.String getDefaultFutureMonth()

getDefaultFutureYear

public static java.lang.String getDefaultFutureYear()

getFutureDate

public static java.util.Date getFutureDate(long spread)

getMonth

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

getTodayDay

public static java.lang.String getTodayDay()

getTodayMonth

public static java.lang.String getTodayMonth()

getTodayYear

public static java.lang.String getTodayYear()

getYear

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


Copyright CSIR. All Rights Reserved.