image.png

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…

image.png

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…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索