This article is a mirror article of machine translation, please click here to jump to the original article.

View: 22724|Reply: 1

[Source] .net/c# to determine if the current time is on a business day

[Copy link]
Posted on 11/25/2017 9:49:37 AM | | | |
Some operations must be performed on working days, if they are not on weekdays, users are prohibited from operating, how to judge whether the current date is in working hours?
First, the rendering:




If we work Monday through Friday, from 9 a.m. to 5 p.m., the code is as follows:








Previous:C# What is the difference between break, continue, return in a while loop?
Next:Quartz.net Simple configuration tutorial
Posted on 11/27/2017 9:25:00 AM |
Why don't the time and the week not be encapsulated together?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com