C#日期加减

2020-04-03  每日一例第26天

1.新建对话框,拖label/button控件;

 

 

2.后台代码;

      MessageBox.Show("10天前是:"+DateTime.Now.AddDays(-10).ToString("yyyy年M月d日"),"提示!");

posted @ 2020-04-03 23:40  winnerljs  阅读(954)  评论(0编辑  收藏  举报