0
EmpCLass.dtDOB = Convert.ToDateTime(txtdob.Text, new CultureInfo("en-US"));

错误 m 得到:

The type or namespace name 'CultureInfo' could not be found(are you missing a using directive or an assembly reference)
4

1 回答 1

3

乍一看,您似乎缺少全球化参考。确保您的代码中有以下 using 语句:

using System.Globalization;
于 2012-10-15T17:19:10.143 回答