none
The name 'CultureInfo' does not exist in the current context RRS feed

  • Question

  • Hi,
    To this line,
                    if (!DateTime.TryParseExact(tb_birth.Text, formats, CultureInfo.InvariantCulture, DateTimeStyles.None, out birth_dt))
                    ...
    


    I've got
    Error    5    The name 'CultureInfo' does not exist in the current context    C:\App11\App11\Default.aspx.cs    171    69    App11
    Error    6    The name 'DateTimeStyles' does not exist in the current context    C:\App11\App11\Default.aspx.cs    171    99    App11

    why?

    Many Thanks & Best Regards, Hua Min

    Friday, July 5, 2013 2:44 AM

Answers

All replies