Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Get DATE part of the DATETIME

    In SQL-Server 2008: usenew datatype date

    DECLARE @DateOnly DATETIME

    SET @DateOnly = CAST(CAST(GetDate() AS Date) AS DATETIME)

    SELECT @dateonly

Viewing post 1 (of 1 total)