SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,770 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have table that stores configurations like
In my sql code, I need to take currentDateTime and get
Following Wednesday as nextexecution date should be following wednesday(10/09/2024)
```1. If currentdatetime > cuttoffdatetime (10-04-2024 17:00:00), for example currentdateTime is 10-04-2024 18:30:00) Then nextexecutiondate should be 2 weeks wednesday which is 10-16-2024.
Our sever is set up default to Sunday as start of the week.
How do I achieve this.
TIA.