• wildh (8/12/2009)


    One thing to be mindful with - SET @dt = DATEADD(d,1-DAY(@dt),@dt) is that when it's used with getdate() the result includes the time as well as the date.

    Wildh,

    Good point, I'd overlooked that.

    Nigel