/**
* 获取当前时间
*
* @return
*/
public Date getDate(String str) {
try {
java.text.SimpleDateFormat formatter = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss");
date = formatter.parse(str);
return date;
} catch (Exception e) {
// TODO: handle exception
}
return null;
}