SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String date = sDateFormat.format(new java.util.Date());
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
ParsePosition pos = new ParsePosition(0);
Date time = formatter.parse(starttime, pos);
Date now = new Date();
//时间比较
if(time == null || time.getTime() < now.getTime())
{
_msg += "开始时间不合法";
islegal1 = false;
}