ALTER FUNCTION [Anketa_MPI].[GetYear] ( @Date datetime ) RETURNS datetime AS BEGIN RETURN YEAR(@Date) END
Quote:when i just query select YEAR(getdate()) it works correctly .. what is it wronkg with my code?
Year
Datetime
ALTER FUNCTION [Anketa_MPI].[GetYear] ( @Date datetime ) RETURNS INT AS BEGIN RETURN YEAR(@Date) END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)