How to create an advanced countdown timer
问题 Well, this question is related to this one, so you guys can understand it better How to convert the "time" from DateTime into int? My Answer to it: txtAtiv.Text = dataGridView1.Rows[0].Cells[1].Value + ""; string value = dataGridView1.Rows[0].Cells[2].Value + ""; lblLeft.Text = value.Split(' ')[1]; textStatus.Text = ""; DateTime timeConvert; DateTime.TryParse(value, out timeConvert); double time; time = timeConvert.TimeOfDay.TotalMilliseconds; var timeSpan = TimeSpan.FromMilliseconds(time);