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

Error m getting:

The type or namespace name 'CultureInfo' could not be found(are you missing a using directive or an assembly reference)
Aleks G
  • 56,435
  • 29
  • 168
  • 265
mannu
  • 1
  • 2

1 Answers1

3

At first glance it looks like you're missing the Globalization reference. Make sure you have the following using statement in your code:

using System.Globalization;
aaron
  • 349
  • 3
  • 10