且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何让结果在几分钟内显示出来?

更新时间: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") ;