dateTimePicker1.Value = dss.Tables["ITdata"].Rows[0]["pudate"].ToString();
If it is already a DateTime, then just take the ToString off - it is a bad idea to start casting dates to strings unless you are about to display them, and it can create localisation problems later.
dateTimePicker1.Value = dss.Tables["ITdata"].Rows[0]["pudate"];
If it is a DateTime, but it is returned as a generic
object
then cast it:
dateTimePicker1.Value = (DateTime) dss.Tables["ITdata"].Rows[0]["pudate"];
If it is a string, then you need to Parse the string, and hope like heck that the string format is the same as your local system! :laugh: If it is a specific string format, then DateTime.ParseExact or DateTime.TryParseExact will be the way to go.