Posts

Showing posts from March, 2014

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]);

Import Data from Excel to SQL Server ASP.NET MVC

Image