判断一个字串是否能转成日期类型的数据,不用IsDateTime类的try()…catch()函数,怎么写呢?

try
{
  TDateTime dt = "2008-ABC";
}
catch(…)
{
  // 不是日期类型
  // return;
}

// 继续处理

C/C++ code
// 见你的另1贴