更新时间:2023-02-12 17:17:47
如果字典中的值是一串日期时间,您可以尝试使用 DateTime.Parse,如下所示:
If the value within the dictionary is a string of datetime you could try using DateTime.Parse like this:
var val = tops[i].Value.ToString();
Controls.Find($"label{i + 33}", true).First().Text = DateTime.Parse(val).ToString("mm:ss") ;