用正则表达式或者另外一种简单方法:try {
   DateTime.Parse( tbInputDate.Text );
   //正确的格式
}
catch {
   //不正确的格式
}