Format format = new SimpleDateFormat("MM/dd/yyyy");
字符串转化为时间:Date date=format.parseObject("10/28/1999");//被转化的字符串格式为format
字符串转化为时间:Date date=format.parseObject("10/28/1999");//被转化的字符串格式为format
时间转化为字符串:String dateString=format.format(date);//转化为的目标字符串格式为format
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date SYSdb_cuuurnt_Date = df.parse(return_datetime_str); //字符串转时间
Date start_date_active;
String s = df.format(start_date_active)//时间转字符串