The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range?

前端 未结 4 555
野趣味
野趣味 2020-12-01 12:11

I am working on application contains a datepicker and if I set the time in that picker to a very old value or far in the future when I try to save this value in the database

4条回答
  •  再見小時候
    2020-12-01 12:35

    This error can also be caused by incorrectly spelling the field name in the bind list of a controller action. In my situation, the date was defaulting to an out of range date since the date field wasn't bound as I thought it was.

提交回复
热议问题