How to get the first day in a week ( Saturday ) NOT ( Sunday ) in WeekToDate field DailySalesByRegister.rdl Report
The defult Function in SQL ( dbo.fnCalculateFirstOfWeek )
USE [MSPOSPractice]
GO
/****** Object: UserDefinedFunction [dbo].[fnCalculateFirstOfWeek] Script Date: 12/15/2012 06:07:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
ALTER FUNCTION [dbo].[fnCalculateFirstOfWeek](@inputDate datetime) RETURNS datetime AS BEGIN return DATEADD(WK, DATEDIFF(WK, 0, @inputDate), -1) END
please help me to Modify this script
*This post is locked for comments