I'm using EF Code first with my asp.net mvc application. here is my code:
Request.RequestDate = DateTime.Now;
the type of RequestDate is datetime in my database. and this is error that occurred when i use the above code!:
The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.
please help me. thanks.