asp.net - Using Insert throws Exception on Datetime field -


I get the following exception when attempting to insert a comment using

insert insert:

< P> Conversion as a result of an out-of-range datetime value of a four data type for a derritime data type

I am using the following globalization setting:

  & lt; Globalization uiCulture = "n-au" culture = "n-au" />  

and my date format is: "dd / mm / yyyy"

I I can resolve the exception by using:

  ci date Haswellu? Ci.Date.Value.ToString ("yyyy-MM-dd HH: mm: ss"): blank  

but it's ugly ... is there anything else that can choose my globalization settings is?

thanks

Do you have an SQLServer 2008 Using the "Date" column?

I am seeing the same problem with this scenario and in my case it is going to set the subSonic Class property for the SQL server "date" type

If you can confirm it, then I would appreciate it, and I will post a problem in the list of Subsonic Projects.

/ div>

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -