String was not recognized as a valid DateTime.

After spending a lots of time i solve the problem


  string strDate = PreocessDate(data);  
       string[] dateString = strDate.Split('/');  
       DateTime enter_date = Convert.ToDateTime(dateString[1]+"/"+dateString[0]+"/"+dateString[2]);  


Popular posts from this blog

WPF Crystal Report Viewer Using SAP

mvc razor textboxfor change event change another textboxfor value

ASP.NET MVC razor SAP Crystal report