Check if datetime instance falls in between other two datetime objects
I would like to know a simple algorithm to check if the given instance of datetime lies between another two instances in C#.
I would like to know a simple algorithm to check if the given instance of datetime lies between another two instances in C#.
Consider the following 2 scenarios: Scenario 1). Today is May 1st 2012, and Scenario 2). Today is September 1st 2012.
I want to show in a TextBox only hour and minutes