判断早八点晚八点内做事情的方法

DateTime.Now > DateTime.Parse(DateTime.Now.ToShortDateString() + " 08:00:00")&& DateTime.Now < DateTime.Parse(DateTime.Now.ToShortDateString() + " 20:00:00")

posted @ 2017-08-10 20:28  洛晨随风  阅读(204)  评论(0编辑  收藏  举报