AddTime

 public static DateTime AddTime(this DateTime date, int hour, int minutes)
        {
            return date + new TimeSpan(hour, minutes, 0);
        }
Example:
var today = DateTime.Today;
var myDate = today.AddTime(1, 55);

Description

Adds time to existing DateTime

Details

Double click on the code to select all.

 

;