AdventureWorks
Basic Index
Expanded Index
Function:
dbo.ufnGetAccountingEndDate
Output Type:
datetime
There are no input parameters
CREATE FUNCTION [dbo].[ufnGetAccountingEndDate]()
RETURNS [datetime]
AS
BEGIN
RETURN DATEADD(millisecond, -2, CONVERT(datetime, '20040701', 112));
END;