String was not recognized as a valid DateTime?

后端 未结 4 508
青春惊慌失措
青春惊慌失措 2021-01-20 02:31

I try to convert string to datetime but each time I get :

String was not recognized as a valid DateTime.

Code is:

4条回答
  •  天涯浪人
    2021-01-20 02:51

    Make sure you add the following in your web config

    
    ...
    

    See the following for the correct culture country code

    http://sharpertutorials.com/list-of-culture-codes/

提交回复
热议问题