c# - Calculate time between 9:00 AM -- 6:00 PM -


I'm getting a string with 8:00 AM. Suppose I was at 8:00 AM at 9:00 am - I want to see before 6:00 AM.
How to check it or if the time falls between 11:00 AM 9:00 am to 6:00 pm? How to get it in C #?

You have a datetime object, its static parsing method, and comparison operators something like the following:

newTime = DateTime.Parse ("8:00 AM"); Default Time = DateTime.Pres ("11:00 AM"); If necessary, you can deduct a datetime from one second to get a tymace - if necessary, which is a duration. is.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -