dianxin xiangdan(20160628)

来源:互联网 发布:淘宝供应商怎么弄 编辑:程序博客网 时间:2024/05/16 09:18
  Console.WriteLine(DateTime.Now.ToShortDateString().ToString());
                Console.WriteLine(beginTime);
                DateTime  endDate= DateTime.Parse(DateTime.Now.ToShortDateString().ToString());
                DateTime startDate = DateTime.Parse(beginTime);
                int totalMonth = endDate.Year * 12 + endDate.Month - startDate.Year * 12 - startDate.Month;
                Console.WriteLine(totalMonth);


                if (totalMonth > 6 || totalMonth<0)
0 0