79180396

Date: 2024-11-12 08:59:21
Score: 2
Natty:
Report link

May be if your replace command.Parameters.AddWithValue("@paramDate", MyDate); by command.Parameters.Add("@paramDate", System.Data.SqlDbType.DateTime2).Value = MyDate;

it will work with MyDate = '0001/01/01 00:00:00" !!!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: avalon69