org.koala.koalautil
Class  DateUtil
java.lang.Object
  |
  +--org.koala.koalautil.DateUtil
- public class DateUtil
- extends java.lang.Object
  
Methods for handling dates
 
| 
Method Summary | 
static java.lang.String | 
getDescriptionDay(java.util.GregorianCalendar date)
 
            | 
static java.lang.String | 
getDescriptionMonth(java.util.GregorianCalendar date)
 
            | 
static java.util.GregorianCalendar | 
toGregorianCalendar(java.lang.String txt,
                    java.lang.String mask)
 
            | 
static java.lang.String | 
toString(java.util.GregorianCalendar date,
         java.lang.String mask)
 
          converts a given GregorianCalendar to a string using a
 string format | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DateUtil
public DateUtil()
toString
public static java.lang.String toString(java.util.GregorianCalendar date,
                                        java.lang.String mask)
                                 throws DateInvalidMaskException
- converts a given GregorianCalendar to a string using a
 string format
- Parameters:
 date - the java.util.GregorianCalendar to convertmask - the mask which specifies the format of the
 output string
- Returns:
 - a 
String containing the calendar
 in a the specified format
 - Throws:
 DateInvalidMaskException - if the mask has an invalid format
 
 
toGregorianCalendar
public static java.util.GregorianCalendar toGregorianCalendar(java.lang.String txt,
                                                              java.lang.String mask)
                                                       throws DateInvalidMaskException
- Parameters:
 txt - mask - 
- Returns:
 - 
 - Throws:
 DateInvalidMaskException
 
getDescriptionDay
public static java.lang.String getDescriptionDay(java.util.GregorianCalendar date)
- Parameters:
 date - 
- Returns:
 
 
getDescriptionMonth
public static java.lang.String getDescriptionMonth(java.util.GregorianCalendar date)
- Parameters:
 date - 
- Returns: