S
Smokey Grindel
I need to insert a date into sql server via a sproc the table has a
smalldatetime field... because we dont care about things before 1900 or
after 2079.... or the time for that matter... but when I instert a date into
the parameter like this
CmdAddRecord.Parameters.AddWithValue("@BillDate",
SqlDbType.SmallDateTime).Value = now.date
it throws a narrowing error basically on the server... saying it cant
convert from datetime to smalldatetime... how do we go about doing this?
thanks!
smalldatetime field... because we dont care about things before 1900 or
after 2079.... or the time for that matter... but when I instert a date into
the parameter like this
CmdAddRecord.Parameters.AddWithValue("@BillDate",
SqlDbType.SmallDateTime).Value = now.date
it throws a narrowing error basically on the server... saying it cant
convert from datetime to smalldatetime... how do we go about doing this?
thanks!