String was not recognized as a valid DateTime “ format dd/MM/yyyy”

前端 未结 13 1413
一整个雨季
一整个雨季 2020-11-22 05:30

I am trying to convert my string formatted value to date type with format dd/MM/yyyy.

this.Text=\"22/11/2009\";

DateTime date = DateTime.Parse(         


        
13条回答
  •  耶瑟儿~
    2020-11-22 05:57

    Although the above solutions are effective, you can also modify the webconfig file with the following...

    
       
         
       
    
    

    Ref : Datetime format different on local machine compared to production machine

提交回复
热议问题