[Solved] Error :- String was not recognized as a valid DateTime


Try this and tell me if it works and please change 06/31 to 06/30 june has only 30 days thanks

this.Text="30/06/2013";    
DateTime date = DateTime.ParseExact(this.Text, "dd/MM/yyyy",CultureInfo.InvariantCulture);

1

solved Error :- String was not recognized as a valid DateTime