ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Adds time to existing DateTime
public static DateTime AddTime(this DateTime date, int hour, int minutes) { return date + new TimeSpan(hour, minutes, 0); }
var today = DateTime.Today; var myDate = today.AddTime(1, 55);
Author: Cătălin Rădoi
Submitted on: 21 mei 2015
Language: C#
Type: DateTime
Views: 6244