create function fn_check_LeapYear(@year int)returns bitasbegin return(select case datepart(mm,dateadd(dd, 1, cast((cast(@year as varchar(4)) + '0228') as datetime))) when 2 then 1 else 0 end)endgo
Login to post response