public static Date toDate( String source, Locale locale ) throws BirtException
public static Date toDate( Object source ) throws BirtException
	public static Date toDate( String source, Locale locale )			throws BirtException	{		DateFormat dateFormat = null;		Date resultDate = null;		//For each pattern, we try to format a date for a default Locale		//If format fails, we format it for Locale.US		//Date style is SHORT such as 12.13.52		//Time sytle is MEDIUM such as 3:30:32pm		try		{			dateFormat = DateFormat.getDateTimeInstance( DEFAULT_DATE_STYLE,					DateFormat.MEDIUM, locale );			resultDate = dateFormat.parse( source );		}		catch ( ParseException e1 )		{		}		if ( resultDate == null )		{			//Date style is SHORT such as 12.13.52			//Time style is SHORT such as 3:30pm			try			{				dateFormat = DateFormat.getDateTimeInstance(						DEFAULT_DATE_STYLE, DateFormat.SHORT, locale );				resultDate = dateFormat.parse( source );			}			catch ( ParseException e1 )			{			}		}		if ( resultDate == null )		{			//Date style is SHORT such as 12.13.52			//No Time sytle			try			{				dateFormat = DateFormat.getDateInstance( DEFAULT_DATE_STYLE,						locale );				resultDate = dateFormat.parse( source );			}			catch ( ParseException e1 )			{			}		}				// for the String can not be parsed, throws a BirtException		if ( resultDate == null )		{			throw new BirtException( ResourceConstants.CONVERT_FAILS, "Date",					resourceBundle );		}				return resultDate;	}