2009-03-16, 07:04 PM
you'd be better to:
or
Code:
SQLParameter newParm = command.Parameters.Add(item_id)
newParm.DbType = System.Data.DbType.DateTime
or
Code:
SQLParameter newParm = new SQLParameter
newParm.DbType = System.Data.DbType.DateTime
newParm.Name = "name"
command.Parameters.Add(newParm)