
How to custom configure the starting day of last week and this week to query business data in C#?
How to custom configure the starting day of last week and this week to query business data in C#? When doing a certain report management function, there is a requirement: it is necessary to count the order data of last week and this week based on the custom configured [Start Day of Week]. There is no encapsulated method in C# to directly obtain the day from the previous week to the day and the day from the current week to the day according to our needs, so we need to encapsulate the method ourselves to implement it (we can also use other languages to follow this idea) ). Author: Xigua Programmer Home page portal: https://www.cnblogs.com/kimiliucn Foreword When doing a certain report management function, there is a requirement: it is necessary to count the order data of last week and this week based on the custom configured [Start Day of Week]. There is no encapsulated method in C# to directly obtain the day from the previous week to the day and the day from the current week to the day according to our needs, so we need to encapsulate the method ourselves to implement it (we can also use other languages…

How to custom configure the starting day of last week and this week to query business data in C#?
How to custom configure the starting day of last week and this week to query business data in C#? When doing a certain report management function, there is a requirement: it is necessary to count the order data of last week and this week based on the custom configured [Start Day of Week]. There is no encapsulated method in C# to directly obtain the day from the previous week to the day and the day from the current week to the day according to our needs, so we need to encapsulate the method ourselves to implement it (we can also use other languages to follow this idea) ). Author: Xigua Programmer Home page portal: https://www.cnblogs.com/kimiliucn Foreword When doing a certain report management function, there is a requirement: it is necessary to count the order data of last week and this week based on the custom configured [Start Day of Week]. There is no encapsulated method in C# to directly obtain the day from the previous week to the day and the day from the current week to the day according to our needs, so we need to encapsulate the method ourselves to implement it (we can also use other languages…