create FUNCTION DayOnly(@Date datetime) RETURNS varchar(12) WITH SCHEMABINDING AS BEGIN RETURN CONVERT(varchar(12), @Date, 101) END GOdrop FUNCTION DayOnly;GO