function strDateTime(str)
{
var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;
var r = str.match(reg);
if(r==null)return false;
var d= new Date(r[1], r[3]-1,r[4],r[5],r[6],r[7]);
return (d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]&&d.getHours()==r[5]&&d.getMinutes()==r[6]&&d.getSeconds()==r[7]);
}
//String regs = "^13\\d{9}||15\\d{9}||18\\d{9}$";
String regs = "^(\\d{4})(-|\\/)(\\d{2})\\2(\\d{2}) (\\d{2}):(\\d{2}):(\\d{2})$";
Pattern pattern = Pattern.compile(regs);
Matcher matcher = pattern.matcher(data);
return matcher.matches();