解决方案 »

  1.   

    string dt = "05/01/1996"; 这是96年5月1日
    //"17/1/2013" 这个有17月么。没有。所以错了
      

  2.   

    不同的日期格式是不同的美国人是
    月/日/年中国是
    日/月/年你最好用DateTime.ParseExact
      

  3.   

               string s= "05/01/1996";
                DateTime t;
                if (DateTime.TryParse(s, out t))
                {
                    MessageBox.Show(t.ToString());
                }
                else
                {
                         // 无法转换的代码
                }
      

  4.   


    好像是有点费劲,针对不同的格式还需要多用几个try才行,谢谢各位老师