Change your code to:
denNastupuParam.Value = denNastupu.Value;
denUkonceniParam.Value = denUkonceni.Value;
You want the value returned by your DateTimePicker
control, not the control itself. If you're only interested in the Date
part of the DateTime
(not clear in the question), use denNastupu.Value.Date
.