diff --git a/src/MyNet.Utilities/Extensions/DateOnlyExtensions.cs b/src/MyNet.Utilities/Extensions/DateOnlyExtensions.cs index 80a2545..0a9322b 100644 --- a/src/MyNet.Utilities/Extensions/DateOnlyExtensions.cs +++ b/src/MyNet.Utilities/Extensions/DateOnlyExtensions.cs @@ -196,6 +196,14 @@ public static DateOnly Previous(this DateOnly start, int day, int month) /// with hour and minute set to given values. public static DateTime At(this DateOnly current, TimeOnly time) => current.ToDateTime(time); + /// + /// Returns the given with hour and minutes set At given values. + /// + /// The current to be changed. + /// The hour to set time to. + /// with hour and minute set to given values. + public static DateTime At(this DateOnly current, TimeOnly time, DateTimeKind kind) => current.ToDateTime(time, kind); + /// /// Returns the given with hour and minutes set At given values. ///