判断早八点晚八点内做事情的方法
DateTime.Now > DateTime.Parse(DateTime.Now.ToShortDateString() + " 08:00:00")&& DateTime.Now < DateTime.Parse(DateTime.Now.ToShortDateString() + " 20:00:00")
积累小的知识,才能成就大的智慧,希望网上少一些复制多一些原创有用的答案
DateTime.Now > DateTime.Parse(DateTime.Now.ToShortDateString() + " 08:00:00")&& DateTime.Now < DateTime.Parse(DateTime.Now.ToShortDateString() + " 20:00:00")