-- Gets the date part of a datetime input -- Created 08/05/04 by Oskar Austegard ALTER FUNCTION dbo.fnDateOnly ( @DateTime datetime --The input date whose date part we want ) RETURNS datetime AS BEGIN RETURN (CONVERT(datetime, CONVERT(varchar(10), @DateTime, 101))) END
Oskar Austegard
http://mo.notono.us