try { return new Date( stringToLongDate( stringValue ) ); } catch( ParseException e1 ) { this.wasNull = true; }
try { java.util.Date date = DateUtil.toDate( stringValue ); return new Date( date.getTime( ) ); } catch ( OdaException oe ) { this.wasNull = true; return null; }
    private Date stringToDate( String stringValue ) throws OdaException    {    	testClosed();    	if( stringValue != null )        {            try            {                return Date.valueOf( stringValue );            }            catch( IllegalArgumentException e )            {                try                {                    return new Date( stringToLongDate( stringValue ) );                }                catch( ParseException e1 )                {                    this.wasNull = true;                }            }        }        return null;    }