diff --git a/CleanMachineHMI/Utils/DateEx.cs b/CleanMachineHMI/Utils/DateEx.cs index 6e480f6..8f3c5b5 100644 --- a/CleanMachineHMI/Utils/DateEx.cs +++ b/CleanMachineHMI/Utils/DateEx.cs @@ -11,6 +11,7 @@ namespace System public static DateTime StartOfTheWeek(this DateTime date) { + return date.Date.AddDays(-(int)date.DayOfWeek);