info.informatica.text
Class DateFormatUtil

java.lang.Object
  extended by info.informatica.text.DateFormatUtil

public class DateFormatUtil
extends Object

Convenience class for DateFormat utility functions

Version:
1.01
Author:
amengual at informatica dot info

Constructor Summary
DateFormatUtil()
           
 
Method Summary
 Date guessDate(Date refdate, String formatted_date)
           
 Date guessDate(String formatted_date)
          Guesses a date from a String, not knowing the format in advance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormatUtil

public DateFormatUtil()
Method Detail

guessDate

public Date guessDate(String formatted_date)
Guesses a date from a String, not knowing the format in advance. Assumes that the date to be guessed is less than SANITY_INTERVAL (20 yrs) from now. Use with caution. TODO: Use locale information, if available, to guess the date.


guessDate

public Date guessDate(Date refdate,
                      String formatted_date)