Class f_dateFormat

Object
  extended by f_dateFormat

public class f_dateFormat
extends Object

f_dateFormat class


Field Summary
static String INVALID_DATE_ERROR
           
static String INVALID_MONTH_ERROR
           
static String INVALID_YEAR_ERROR
           
 
Method Summary
static String FormatDate(Date date, String format, f_locale locale)
           
static Date ParseDate(String text, String format, Date twoDigitYearStart, f_locale locale)
           
static Number ResolveYear(Number year, Number month, Number date, Date twoDigitYearStart, f_locale locale)
           
 
Methods inherited from class Object
toString
 

Field Detail

INVALID_YEAR_ERROR

public static final String INVALID_YEAR_ERROR

INVALID_DATE_ERROR

public static final String INVALID_DATE_ERROR

INVALID_MONTH_ERROR

public static final String INVALID_MONTH_ERROR
Method Detail

ParseDate

public static final Date ParseDate(String text,
                                   String format,
                                   Date twoDigitYearStart,
                                   f_locale locale)
Parameters:
text - Text to parse.
format - Expression of parsing.
twoDigitYearStart -
locale - Locale used by parsing.
Returns:
Date parsed.

FormatDate

public static final String FormatDate(Date date,
                                      String format,
                                      f_locale locale)
Parameters:
date - Date to format.
format - Expression of format.
locale - Locale used by format.
Returns:
Formatted date.

ResolveYear

public static final Number ResolveYear(Number year,
                                       Number month,
                                       Number date,
                                       Date twoDigitYearStart,
                                       f_locale locale)
Parameters:
year -
month -
date -
twoDigitYearStart -
locale -