ContractInfo temp = new ContractInfo(
tempBuyContractmaster.getContractcode(),
tempBuyContractmaster.getPersonid().toString(),
tempBuyContractmaster.getCustid().toString(),
//tempBuyContractmaster.getContdate().toString(),
"00",
tempBuyContractmaster.getName(),
tempBuyContractmaster.getBapproved().toString()
);
tempBuyContractmaster.getContractcode(),
tempBuyContractmaster.getPersonid().toString(),
tempBuyContractmaster.getCustid().toString(),
//tempBuyContractmaster.getContdate().toString(),
"00",
tempBuyContractmaster.getName(),
tempBuyContractmaster.getBapproved().toString()
);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd mm:ss:hh");
String s = df.format(d);
其中d为java.sql.date型