T-SQL: add working days to a date
Add only working date to a function, skip saturdays and sundays.
CREATE FUNCTION dbo.AddWorkingDays(@Data AS DATE, @Giorni AS INT)
RETURNS DATETIME
AS
BEGIN
DECLARE @DataFinale as DATETIME, @contatore as int
SET @contatore=0
--add ...
massyfigini.hashnode.dev1 min read