Sir. How can i rename a DateTimePicker using a button then use its value to get only its minute..
for (int ctr = 1; ctr <=5; ctr++)
{
DateTimePicker dtpno =new DateTimePicker();
dtpno.Name = "dtp_in_" + ctr.ToString();
string dtpmin= dtpno.Text;
string[] dtpparts = dtpmin.Split(':');
try
{
int minute = int.Parse(dtpparts[1]);
MessageBox.Show("minute=" + minute);
}
catch (Exception ex)
{
}
}