Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

'String was not recognized as a valid DateTime’ error in Ajax calendar

$
0
0

Hi folks, I have managed to get the Ajax calendar working ok, but now I have a new problem'String was not recognized as a valid DateTime.’

If I type the date in the textbox like so 17/11/2014 it work ok, but if I select it from the Ajax calendar I receive the following error

‘String was not recognized as a valid DateTime’

The Ajax calendar does place the same date format systle in the textbox like 17/11/2014

code below

cmd.Parameters.Add("@FittingDate", SqlDbType.Date).Value = Convert.ToDateTime(txtFittingDate.Text);


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>