Jon*_*eet 12
string str = "24/10/2008";
DateTime dt = DateTime.ParseExact(str, "dd/MM/yyyy",
Thread.CurrentThread.CurrentCulture);
Run Code Online (Sandbox Code Playgroud)
(诚然,你应该考虑你真正想要解析它的文化.)
编辑:其他答案指定"null"作为第三个参数 - 这相当于使用Thread.CurrentThread.CurrentCulture.
有关其他格式,请参阅MSDN中的"自定义日期和时间格式字符串".