Hello. I am trying to take some start and end dates and times with a couple values, then sending them to a stored procedure to return a value to populate a field on the same form. This is done with the click of a button. I am sure there is a better way to accomplish this. But When I manually send the values to the procedure in SQL, it responds appropriately. But when I do it from with CSI I get this error. "Invalid cast from 'System.DateTime' to 'System.TimeSpan'." Has anyone run into this? Or if someone has a better solution. Please help. Thanks in advance.