DateTime.IsInNextNHours
This function determines if the specified datetime value dateTime falls within the next number of hours based on the current date and time of the system. It should be noted that the function will retu...
This function determines if the specified datetime value dateTime falls within the next number of hours based on the current date and time of the system. It should be noted that the function will return false if a value falls within the current hour. Inputs for the function include dateTime (a datetime or datetimezone value to be evaluated) and hours (the number of hours to be considered).