SimpleDateFormat bartDateFormat = new SimpleDateFormat("yyyy-MM-dd");
java.sql.Date btime=null;;
if(cdata.getBegintime()!=null){
java.util.Date date = bartDateFormat.parse(cdata.getBegintime().toString());
btime= new java.sql.Date(date.getTime());
}else{
java.util.Date date = bartDateFormat.parse("1970-01-01");
btime= new java.sql.Date(date.getTime());
}