G
Guest
I have SQL parameter that looks like this:
cmdUpdate.Parameters.Add
("@invoicedate", SqlDbType.NVarChar, 40).Value = dr["invoice
date"].ToString();
IT is updating a field in a SQL2K database.
The database field is of type char and not date.
The data in dr["invoice date"] looks like this:
12/29/2004
But when the field is updated the database looks like this.
2/4/2004 12:00:00 AM .
How do I get it formated correctly.
Thanks
Paul
cmdUpdate.Parameters.Add
("@invoicedate", SqlDbType.NVarChar, 40).Value = dr["invoice
date"].ToString();
IT is updating a field in a SQL2K database.
The database field is of type char and not date.
The data in dr["invoice date"] looks like this:
12/29/2004
But when the field is updated the database looks like this.
2/4/2004 12:00:00 AM .
How do I get it formated correctly.
Thanks
Paul