dateTimePicker1.Value = DateTime.Today;
objectobj=dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[4].Value;DateTimetime=Convert.ToDateTime(obj);dateTimePicker.Value=time;