org.uispec4j.utils
Class DateUtils

java.lang.Object
  extended by org.uispec4j.utils.DateUtils

public class DateUtils
extends java.lang.Object

Utility for checking date as String formatted by a date format. By default, the date format u

See Also:
DateFormat

Field Summary
static java.text.SimpleDateFormat DEFAULT_DATE_FORMAT
           
 
Method Summary
static java.util.Date getDate(java.lang.String yyyyMMdd)
          Returns the date from the given value parsed by the date format.
static java.lang.String getStandardDate(java.util.Date date)
          Returns the Date as String formated by the date format.
static void setDateFormat(java.text.DateFormat dateFormat)
          Sets the date format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DATE_FORMAT

public static final java.text.SimpleDateFormat DEFAULT_DATE_FORMAT
Method Detail

getDate

public static java.util.Date getDate(java.lang.String yyyyMMdd)
                              throws java.text.ParseException
Returns the date from the given value parsed by the date format.

Throws:
java.text.ParseException

getStandardDate

public static java.lang.String getStandardDate(java.util.Date date)
Returns the Date as String formated by the date format.


setDateFormat

public static void setDateFormat(java.text.DateFormat dateFormat)
Sets the date format.



Copyright © 2004-2010. All Rights Reserved.