SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. The statement has been terminated.

The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. The statement has been terminated. Ref: https://blog.csdn.net/weixin_44728363/article/details/88948049 https://stackoverflow.com/questions/18557546/why-i-cant-save-the-current-datetime-now-using-entity-framework