[英]how can i add time within time and show to label2 the added time? c#
這是一個高層次的想法。 請更改它以適合您的實現。
Label label1 = new Label();
Label label2 = new Label();
DateTime time = DateTime.Today;
label1.Text = time.ToString();
void OnButtonClicked()
{
label2.Text = time.AddHours(1);
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.