This commit is contained in:
gongxh
2022-05-31 16:26:38 +08:00
parent 507bde6bed
commit ae42a43f15

View File

@@ -11,6 +11,7 @@ namespace System
public static DateTime StartOfTheWeek(this DateTime date)
{
return date.Date.AddDays(-(int)date.DayOfWeek);