this code will input datetime picker value in integer values
step1:
drag and drop date time picker
choose event ValueChanged
dateTimePicker1_ValueChanged
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
int Month=int.Parse( dateTimePicker1.Value.Month.ToString());
int Day =int.Parse( dateTimePicker1.Value.Day.ToString());
int Year=int.Parse(dateTimePicker1.Value.Year.ToString());
int Hour = int.Parse(dateTimePicker1.Value.Hour.ToString());
int Minute = int.Parse(dateTimePicker1.Value.Minute.ToString());
int Second = int.Parse(dateTimePicker1.Value.Second.ToString());
dataGridView1[0,0]=Month;
dataGridView1[0, 1] = Day;
dataGridView1[0, 2] = Year;
dataGridView1[0, 3] = Hour;
dataGridView1[0, 4] = Minute;
dataGridView1[0, 5] = Second;
}