我有26062012格式。我想将此格式转换为datetimeSQL Server 2008 中的格式。
我的代码是:
else if (str.equalsIgnoreCase("DATETIME")){
    sb.append("CONVERT(Datetime,'").append(strCell).append("',102)").append(',');
}
错误是:
com.microsoft.sqlserver.jdbc.SQLServerException: The conversion of a 
  varchar data type to a datetime data type resulted in an out-of-range value.