gostaria que a data me retornasse assim yyyy-mm-dd, só que ao invés disso ela vem no formato acho que timeStamp
public Date ConveterData() {
String str;
SimpleDateFormat ft = new SimpleDateFormat(“yyyy-mm-dd”);
str = ft.format(dcano.getDate());
try {
return ft.parse(str);
} catch (ParseException ex) {
throw new RuntimeException(ex);
}
}