Converter de java.util.date para java.sql.date, nao estou conseguindo

ola pessoal
estou tentando fazer uma insercao no bando de dados, porem, ele me gera erro
procurei na net, e apenas consegui erros diferentes
estou usando SQL Server 2005 com o driver “net.sourceforge.jtds.jdbc.Driver”

import java.util.Date;

public class Pessoa  implements Serializable {

	private int id;
    private String nome;
    private Date nascimento;
}

algumas das minhas tentativas
1)

		try {
			DateFormat f = new SimpleDateFormat("dd/MM/yyyy");
			Date date = f.parse(this.pessoaFisica.getNascimento().toString());
			java.sql.Date dataSQL = new java.sql.Date(date.getTime());

			conn = GerenciadorConexao.getConexao();
			stmt = conn.prepareStatement(sql);
			stmt.setDate(7,dataSQL);
			qtd = stmt.executeUpdate();
			
		} catch (Exception e) {
				throw new KrusstException("erro no update",e);
		}
		return qtd;
		try {
			conn = GerenciadorConexao.getConexao();
			stmt = conn.prepareStatement(sql);
			stmt.setDate(7,(java.sql.Date) this.pessoaFisica.getNascimento().getTime());
			qtd = stmt.executeUpdate();
			
		} catch (Exception e) {
				throw new KrusstException("erro no update",e);
		}
		return qtd;

esses foram uns dos teste que fiz, porem, ambos deram erros

erro
1)

javax.servlet.ServletException: Unparseable date: "Sat Feb 02 00:00:00 GMT-03:00 2002" javax.faces.webapp.FacesServlet.service(FacesServlet.java:256) org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96) org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)

javax.servlet.ServletException: java.util.Date cannot be cast to java.sql.Date javax.faces.webapp.FacesServlet.service(FacesServlet.java:256) org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96) org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)

esses foram os testes e os erros que tive
se algum puder me ajudar
T+
abs

Uso desse jeito, veja se te ajuda.

	public static String convertDate(String format, Date dtConsulta) {
		try {
			SimpleDateFormat formatter = new SimpleDateFormat(format, new Locale("pt", "BR"));
			return formatter.format(dtConsulta);
		} catch (Exception e) {
			return null;
		}
	}
	
	public static String convertSqlDate(Date date) {
		if(date!=null){
			return convertDate("yyyy-MM-dd", date);
		} else {
			return null;
		}
	}

Tenta isso.

  public static java.sql.Date getSqlDate(Date data) {
  	if(data == null){
  		return null;
  	}
    return java.sql.Date.valueOf(dateToStr(data, "yyyy-MM-dd"));
  }
  public static String dateToStr(Date date, String format) {

    String retorno = null;

    if ((null != date) && (null != format)) {

      SimpleDateFormat formater = new SimpleDateFormat(format);
      retorno = formater.format(date);
    }

    return retorno;
  }

[quote=Licuri]Tenta isso.

[code]
public static java.sql.Date getSqlDate(Date data) {
if(data == null){
return null;
}
return java.sql.Date.valueOf(dateToStr(data, “yyyy-MM-dd”));
}
public static String dateToStr(Date date, String format) {

String retorno = null;

if ((null != date) && (null != format)) {

  SimpleDateFormat formater = new SimpleDateFormat(format);
  retorno = formater.format(date);
}

return retorno;

}
[/code][/quote]

valeu
funcionou

obrigado Licuri e avsouza

T+
abs